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

BUG#6662: Importing mysqldumps should not show any warnings of level "notes".

This commit is contained in:
unknown
2005-02-21 18:40:28 +01:00
parent 96f9c9d9d3
commit edaf33a14e
6 changed files with 54 additions and 19 deletions

View File

@ -104,6 +104,10 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level,
{
MYSQL_ERROR *err= 0;
DBUG_ENTER("push_warning");
if (level == MYSQL_ERROR::WARN_LEVEL_NOTE && !(thd->options & OPTION_NOTES))
return(0);
if (thd->query_id != thd->warn_id)
mysql_reset_errors(thd);