Addendum to the 5.1 merge of the fix

for bug 30377: use the function instead of
the complex condition.
parent acf0ebe6
...@@ -1732,8 +1732,7 @@ mysql_execute_command(THD *thd) ...@@ -1732,8 +1732,7 @@ mysql_execute_command(THD *thd)
variables, but for now this is probably good enough. variables, but for now this is probably good enough.
Don't reset warnings when executing a stored routine. Don't reset warnings when executing a stored routine.
*/ */
if ((all_tables || &lex->select_lex != lex->all_selects_list || if ((all_tables || !lex->is_single_level_stmt()) && !thd->spcont)
lex->sroutines.records) && !thd->spcont)
mysql_reset_errors(thd, 0); mysql_reset_errors(thd, 0);
#ifdef HAVE_REPLICATION #ifdef HAVE_REPLICATION
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment