summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 4fd943c08f4..09640eb3f57 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -1606,7 +1606,8 @@ static int open_unireg_entry(THD *thd, TABLE *entry, const char *db,
if (ha_create_table_from_engine(thd, db, name, TRUE) != 0)
goto err;
- thd->clear_error(); // Clear error message
+ mysql_reset_errors(thd, true); // Clear warnings
+ thd->clear_error(); // Clear error message
continue;
}