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:
@ -160,6 +160,7 @@ void lex_start(THD *thd, uchar *buf,uint length)
|
||||
lex->duplicates= DUP_ERROR;
|
||||
lex->ignore= 0;
|
||||
lex->proc_list.first= 0;
|
||||
thd->allow_sum_func= 0;
|
||||
}
|
||||
|
||||
void lex_end(LEX *lex)
|
||||
|
Reference in New Issue
Block a user