1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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.
This commit is contained in:
Aleksey Midenkov
2019-06-25 10:53:33 +03:00
parent af5b0dbab6
commit 6974962945
7 changed files with 118 additions and 0 deletions

View File

@ -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());