summaryrefslogtreecommitdiff
path: root/sql/sql_error.cc
diff options
context:
space:
mode:
authorunknown <lars@mysql.com>2005-02-21 18:40:28 +0100
committerunknown <lars@mysql.com>2005-02-21 18:40:28 +0100
commitedaf33a14e922571e8e80910bba6693b72e2db83 (patch)
treeb5fa7db32611dc285b185068666727e0844c2fdc /sql/sql_error.cc
parent96f9c9d9d372b45e0271f2caccec948ddc6c7fc4 (diff)
downloadmariadb-git-edaf33a14e922571e8e80910bba6693b72e2db83.tar.gz
BUG#6662: Importing mysqldumps should not show any warnings of level "notes".
Diffstat (limited to 'sql/sql_error.cc')
-rw-r--r--sql/sql_error.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_error.cc b/sql/sql_error.cc
index eab5ec890df..e04c2843c93 100644
--- a/sql/sql_error.cc
+++ b/sql/sql_error.cc
@@ -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);