1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Moved safe_to_cache_query from thd to lex.

This is required for prepared statements and stored procedures.
This commit is contained in:
pem@mysql.com
2002-11-22 14:50:53 +01:00
parent b201dfece4
commit ae2192ed53
11 changed files with 44 additions and 39 deletions

View File

@ -606,9 +606,9 @@ static bool parse_prepare_query(PREP_STMT *stmt,
mysql_log.write(thd,COM_PREPARE,"%s",packet);
mysql_init_query(thd);
thd->prepare_command=true;
thd->safe_to_cache_query= 0;
LEX *lex=lex_start(thd, (uchar*) packet, length);
lex->safe_to_cache_query= 0;
if (!yyparse() && !thd->fatal_error)
error= send_prepare_results(stmt);
lex_end(lex);