diff options
author | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2021-04-26 17:11:51 +0530 |
---|---|---|
committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2021-04-26 17:11:51 +0530 |
commit | f73166cded0ee5a3b8615d16a0d91dfd8e867dba (patch) | |
tree | 21a10d71e7ef63e8a718bfc8540745c1f7167e1b /sql/sql_show.cc | |
parent | 54c460ace606157f2a23706ec98e9de70aba767e (diff) | |
download | mariadb-git-bb-10.3-MDEV-25462.tar.gz |
MDEV-25462: Assertion `m_status == DA_ERROR || m_status == DA_OK ||bb-10.3-MDEV-25462
m_status == DA_OK_BULK' failed in Diagnostics_area::message
from get_schema_tables_record
Analysis: When parsing takes place and we get ER_PARSE_ERROR, error is not set
because we assume we are parsing a stored procedure.
Fix: Set error status if error is ER_PARSE_ERROR and we are not parsing a
stored procedure.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 38b3d62d539..7ed4c3b5696 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -5045,7 +5045,7 @@ public: const char* msg, Sql_condition ** cond_hdl) { if (sql_errno == ER_TRG_NO_DEFINER || sql_errno == ER_TRG_NO_CREATION_CTX - || sql_errno == ER_PARSE_ERROR) + || (sql_errno == ER_PARSE_ERROR && thd->is_parsing_IS_table)) return true; if (*level != Sql_condition::WARN_LEVEL_ERROR) |