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:
@@ -2569,9 +2569,7 @@ Field *Field::make_new_field(MEM_ROOT *root, TABLE *new_table,
|
|||||||
*/
|
*/
|
||||||
tmp->unireg_check= Field::NONE;
|
tmp->unireg_check= Field::NONE;
|
||||||
tmp->flags&= (NOT_NULL_FLAG | BLOB_FLAG | UNSIGNED_FLAG |
|
tmp->flags&= (NOT_NULL_FLAG | BLOB_FLAG | UNSIGNED_FLAG |
|
||||||
ZEROFILL_FLAG | BINARY_FLAG | ENUM_FLAG | SET_FLAG |
|
ZEROFILL_FLAG | BINARY_FLAG | ENUM_FLAG | SET_FLAG);
|
||||||
VERS_ROW_START | VERS_ROW_END |
|
|
||||||
VERS_UPDATE_UNVERSIONED_FLAG);
|
|
||||||
tmp->reset_fields();
|
tmp->reset_fields();
|
||||||
tmp->invisible= VISIBLE;
|
tmp->invisible= VISIBLE;
|
||||||
return tmp;
|
return tmp;
|
||||||
|
@@ -5577,6 +5577,7 @@ public:
|
|||||||
|
|
||||||
bool vers_insert_history_fast(const TABLE *table)
|
bool vers_insert_history_fast(const TABLE *table)
|
||||||
{
|
{
|
||||||
|
DBUG_ASSERT(table->versioned());
|
||||||
return table->versioned(VERS_TIMESTAMP) &&
|
return table->versioned(VERS_TIMESTAMP) &&
|
||||||
(variables.option_bits & OPTION_INSERT_HISTORY) &&
|
(variables.option_bits & OPTION_INSERT_HISTORY) &&
|
||||||
lex->duplicates == DUP_ERROR;
|
lex->duplicates == DUP_ERROR;
|
||||||
|
Reference in New Issue
Block a user