| 810 | |
| 811 | |
| 812 | int close_thread_tables_for_query(THD *thd) |
| 813 | { |
| 814 | if (thd->lex && thd->lex->explain) |
| 815 | thd->lex->explain->notify_tables_are_closed(); |
| 816 | |
| 817 | DBUG_EXECUTE_IF("explain_notify_tables_are_closed", |
| 818 | if (dbug_user_var_equals_str(thd, "show_explain_probe_query", |
| 819 | thd->query())) |
| 820 | dbug_serve_apcs(thd, 1); |
| 821 | ); |
| 822 | return close_thread_tables(thd); |
| 823 | } |
| 824 | /* |
| 825 | Close all tables used by the current substatement, or all tables |
| 826 | used by this thread if we are on the upper level. |
no test coverage detected