diff options
author | unknown <reggie@bob.(none)> | 2005-01-17 13:40:36 -0600 |
---|---|---|
committer | unknown <reggie@bob.(none)> | 2005-01-17 13:40:36 -0600 |
commit | f6f90e7dc1ae497ac25941fc6b709f18a5d46c46 (patch) | |
tree | ca2523bbcc9835d4bf523c5d891bd91f55a210d1 | |
parent | 31457a625861d4dc3a99990eb42c38a81b607aef (diff) | |
download | mariadb-git-f6f90e7dc1ae497ac25941fc6b709f18a5d46c46.tar.gz |
Bug #7966 query cache doesn't work properly with batch statements
sql_lex.cc:
Set query to not cacheable if we are using multistatements and there are multiple statements in this query
sql/sql_lex.cc:
Set query to not cacheable if we are using multistatements and there are multiple statements in this query
-rw-r--r-- | sql/sql_lex.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 5730073bd35..2783406e16a 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -912,6 +912,7 @@ int yylex(void *arg, void *yythd) if ((thd->client_capabilities & CLIENT_MULTI_STATEMENTS) && (thd->command != COM_PREPARE)) { + lex->safe_to_cache_query=0; lex->found_colon=(char*)lex->ptr; thd->server_status |= SERVER_MORE_RESULTS_EXISTS; lex->next_state=MY_LEX_END; |