diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-07-06 11:09:06 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-07-09 06:27:40 +0400 |
commit | a179de04025443032745ee811a97d8da7afe8996 (patch) | |
tree | 67e9f02933828933c4d411d2b0a13aa855268d4e /sql/sql_error.cc | |
parent | aca29bb75408b22b53708d7007111ead0f0b5906 (diff) | |
download | mariadb-git-a179de04025443032745ee811a97d8da7afe8996.tar.gz |
MDEV-19991 Turn I_S tables GEOMETRY_COLUMNS and SPATIAL_REF_SYS into a plugin
Diffstat (limited to 'sql/sql_error.cc')
-rw-r--r-- | sql/sql_error.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/sql_error.cc b/sql/sql_error.cc index 9f541c775fa..e6dcfed0412 100644 --- a/sql/sql_error.cc +++ b/sql/sql_error.cc @@ -1009,3 +1009,13 @@ bool is_sqlstate_valid(const LEX_CSTRING *sqlstate) return true; } + + +void convert_error_to_warning(THD *thd) +{ + DBUG_ASSERT(thd->is_error()); + push_warning(thd, Sql_condition::WARN_LEVEL_WARN, + thd->get_stmt_da()->sql_errno(), + thd->get_stmt_da()->message()); + thd->clear_error(); +} |