1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-29830 Assertion `table->versioned()' in THD::vers_insert_history_fast

don't set VERS_ROW_START or VERS_ROW_END flags on fields of a temporary
table (as not versioned tables should not have ROW START/ROW END fields)
This commit is contained in:
Sergei Golubchik
2022-10-20 14:10:04 +02:00
parent 7bdc024fb0
commit c0fe0cce43
2 changed files with 2 additions and 3 deletions

View File

@@ -5577,6 +5577,7 @@ public:
bool vers_insert_history_fast(const TABLE *table)
{
DBUG_ASSERT(table->versioned());
return table->versioned(VERS_TIMESTAMP) &&
(variables.option_bits & OPTION_INSERT_HISTORY) &&
lex->duplicates == DUP_ERROR;