mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-23100 ODKU of non-versioning column inserts history row
Use vers_check_update() to avoid inserting history row for ODKU if now versioned fields specified in update_fields.
This commit is contained in:
@ -1916,7 +1916,8 @@ int write_record(THD *thd, TABLE *table,COPY_INFO *info)
|
||||
if (error != HA_ERR_RECORD_IS_THE_SAME)
|
||||
{
|
||||
info->updated++;
|
||||
if (table->versioned())
|
||||
if (table->versioned() &&
|
||||
table->vers_check_update(*info->update_fields))
|
||||
{
|
||||
if (table->versioned(VERS_TIMESTAMP))
|
||||
{
|
||||
|
Reference in New Issue
Block a user