diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2019-11-22 14:29:03 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2019-11-22 14:29:03 +0300 |
commit | 0076dce2c89248b6c0252ec4385879194f9aadbf (patch) | |
tree | 1774fb25fcbe854aee956841ab28298029b548f6 /sql/ha_partition.cc | |
parent | a14544260c33dcdb057d2f62c4aab33cb09ebcb1 (diff) | |
download | mariadb-git-0076dce2c89248b6c0252ec4385879194f9aadbf.tar.gz |
MDEV-18727 improve DML operation of System Versioning
MDEV-18957 UPDATE with LIMIT clause is wrong for versioned partitioned tables
UPDATE, DELETE: replace linear search of current/historical records
with vers_setup_conds().
Additional DML cases in view.test
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r-- | sql/ha_partition.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index 232111d5a98..380fc48e915 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -4538,7 +4538,7 @@ int ha_partition::delete_row(const uchar *buf) or last historical partition, but DELETE HISTORY can delete from any historical partition. So, skip the check in this case. */ - if (!thd->lex->vers_conditions.is_set()) // if not DELETE HISTORY + if (!thd->lex->vers_conditions.delete_history) { uint32 part_id; error= get_part_for_buf(buf, m_rec0, m_part_info, &part_id); |