summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2019-06-25 10:53:33 +0300
committerAleksey Midenkov <midenok@gmail.com>2019-07-08 14:55:59 +0300
commit69749629455605c64f7bb1a2012e9cbe13f61b76 (patch)
tree52b2ee08df668c1b65395135a9de94b3ca45c046 /sql/sql_class.cc
parentaf5b0dbab6f4dbd83cb38031286916adbb1827a4 (diff)
downloadmariadb-git-69749629455605c64f7bb1a2012e9cbe13f61b76.tar.gz
MDEV-16222 Assertion `0' failed in row_purge_remove_sec_if_poss_leaf on table with virtual columns and indexes
Cause Stale thd->m_stmt_da->m_sql_errno which is from different invocation. Fix Reset error state before attempt to open table.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index a5066dd9f54..a9edf965488 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -4826,6 +4826,11 @@ unsigned long long thd_get_query_id(const MYSQL_THD thd)
return((unsigned long long)thd->query_id);
}
+void thd_clear_error(MYSQL_THD thd)
+{
+ thd->clear_error();
+}
+
extern "C" const struct charset_info_st *thd_charset(MYSQL_THD thd)
{
return(thd->charset());