summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorRucha Deodhar <rucha.deodhar@mariadb.com>2021-04-26 17:11:51 +0530
committerRucha Deodhar <rucha.deodhar@mariadb.com>2021-04-26 17:11:51 +0530
commitf73166cded0ee5a3b8615d16a0d91dfd8e867dba (patch)
tree21a10d71e7ef63e8a718bfc8540745c1f7167e1b /sql/sql_parse.cc
parent54c460ace606157f2a23706ec98e9de70aba767e (diff)
downloadmariadb-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_parse.cc')
-rw-r--r--sql/sql_parse.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 98a437c5991..e4888bee6fd 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -7586,6 +7586,7 @@ void THD::reset_for_next_command(bool do_clear_error)
get_stmt_da()->reset_for_next_command();
rand_used= 0;
m_sent_row_count= m_examined_row_count= 0;
+ is_parsing_IS_table=false;
accessed_rows_and_keys= 0;
reset_slow_query_state();