MCPcopy Create free account
hub / github.com/MariaDB/server / set_switch

Method set_switch

sql/opt_hints.h:305–315  ·  view source on GitHub ↗

Function sets switch hint state. @param switch_state_arg switch hint state @param type_arg hint type @param check_parent true if hint can be on parent level @return true if hint is already specified, false otherwise */

Source from the content-addressed store, hash-verified

303 false otherwise
304 */
305 bool set_switch(bool switch_state_arg,
306 opt_hints_enum type_arg,
307 bool check_parent)
308 {
309 if (is_specified(type_arg) ||
310 (check_parent && parent->is_specified(type_arg)))
311 return true;
312
313 hints_map.set_switch(type_arg, switch_state_arg);
314 return false;
315 }
316
317 /**
318 Function returns switch hint state.

Callers 2

resolveMethod · 0.45
resolve_for_qb_nameMethod · 0.45

Calls 1

is_specifiedMethod · 0.45

Tested by

no test coverage detected