1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix bug #13180 thd->allow_sum_funcs wasn't reset before query processing.

thd->allow_sum_func was left 'true' after previous statement thus allowing
sum funcs to be present in conditions.

thd->allow_sum_func should be set to 0 for each query and each prepared
statement reinitialization. This is done in lex_start() and 
reset_stmt_for_execute().
This commit is contained in:
evgen@moonbone.local
2005-09-22 01:38:39 +04:00
parent 21636f1ccb
commit b7e8c8b112
4 changed files with 26 additions and 0 deletions

View File

@ -1738,6 +1738,7 @@ static void reset_stmt_for_execute(Prepared_statement *stmt)
lex->current_select= &lex->select_lex;
if (lex->result)
lex->result->cleanup();
thd->allow_sum_func= 0;
}