MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / uncacheable

Method uncacheable

sql/sql_lex.h:2541–2559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2539 }
2540
2541 inline void uncacheable(uint8 cause)
2542 {
2543 safe_to_cache_query= 0;
2544
2545 /*
2546 There are no sense to mark select_lex and union fields of LEX,
2547 but we should merk all subselects as uncacheable from current till
2548 most upper
2549 */
2550 SELECT_LEX *sl;
2551 SELECT_LEX_UNIT *un;
2552 for (sl= current_select, un= sl->master_unit();
2553 un != &unit;
2554 sl= sl->outer_select(), un= sl->master_unit())
2555 {
2556 sl->uncacheable|= cause;
2557 un->uncacheable|= cause;
2558 }
2559 }
2560 void set_trg_event_type_for_tables();
2561
2562 TABLE_LIST *unlink_first_table(bool *link_to_local);

Callers 3

get_system_varFunction · 0.80
createMethod · 0.80
create_nativeMethod · 0.80

Calls 2

master_unitMethod · 0.80
outer_selectMethod · 0.80

Tested by

no test coverage detected