1
0
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:
Aleksey Midenkov
2023-07-20 14:13:59 +03:00
parent fe618de691
commit c5a8341115
3 changed files with 32 additions and 1 deletions

View File

@ -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))
{