Checks for temporary tables are only done if they have been created

Previously all queries were inspected for CREATE, DROP and SELECT statements
which targeted temporary tables even if they haven't been created.
This commit is contained in:
Markus Makela
2016-01-06 18:58:05 +02:00
parent b84e739cfa
commit cba190f84c
2 changed files with 17 additions and 5 deletions

View File

@ -294,6 +294,7 @@ struct router_client_session {
bool rses_transaction_active;
bool rses_load_active; /*< If LOAD DATA LOCAL INFILE is
* being currently executed */
bool have_tmp_tables;
uint64_t rses_load_data_sent; /*< How much data has been sent */
DCB* client_dcb;
int pos_generator;