| 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); |
no test coverage detected