diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2019-05-27 15:03:15 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2019-08-11 12:32:08 +0300 |
commit | 5851e668d7a0d51034c7d74779c39ef0f7b8d002 (patch) | |
tree | eda02cd8fd6815fc087dda007e342ebceb3da60a /mysql-test/suite/versioning/t | |
parent | 98758b52b3a3b0ede3cb8f93bcada5e5af51254b (diff) | |
download | mariadb-git-5851e668d7a0d51034c7d74779c39ef0f7b8d002.tar.gz |
MDEV-19304 Segfault in ALTER TABLE after UPDATE for SIMULTANEOUS_ASSIGNMENT
For MODE_SIMULTANEOUS_ASSIGNMENT it is required to return back field
offsets from record[1] to record[0]. 'continue' in warning branch did
skip of rfield->move_field_offset() call.
Diffstat (limited to 'mysql-test/suite/versioning/t')
-rw-r--r-- | mysql-test/suite/versioning/t/alter.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/suite/versioning/t/alter.test b/mysql-test/suite/versioning/t/alter.test index 4af937b96e7..f11eee59641 100644 --- a/mysql-test/suite/versioning/t/alter.test +++ b/mysql-test/suite/versioning/t/alter.test @@ -503,5 +503,16 @@ alter table t1 modify a int with system versioning; select * from t1; --disable_info +--echo # +--echo # MDEV-19304 Segfault in ALTER TABLE after UPDATE for SIMULTANEOUS_ASSIGNMENT +--echo # +create or replace table t1 (a int, s timestamp(6) as row start, e timestamp(6) as row end, period for system_time(s,e)) engine=myisam with system versioning; +insert into t1 values (null, null, null); +insert into t1 values (null, null, null); +set sql_mode= 'simultaneous_assignment'; +update t1 set e= 1; +alter table t1 force; +set sql_mode= default; + drop database test; create database test; |