1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Fixed BUG#9004: Inconsistent behaviour of SP re. warnings

This commit is contained in:
pem@mysql.comhem.se
2005-04-22 12:53:48 +02:00
parent a6b68d51ec
commit 057b8aa9a8
4 changed files with 60 additions and 3 deletions

View File

@ -113,7 +113,7 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level,
!(thd->options & OPTION_SQL_NOTES))
DBUG_RETURN(0);
if (thd->query_id != thd->warn_id)
if (thd->query_id != thd->warn_id && !thd->spcont)
mysql_reset_errors(thd, 0);
thd->got_warning= 1;