summaryrefslogtreecommitdiff
path: root/mysql-test/suite/versioning/t/select2.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/versioning/t/select2.test')
-rw-r--r--mysql-test/suite/versioning/t/select2.test10
1 files changed, 9 insertions, 1 deletions
diff --git a/mysql-test/suite/versioning/t/select2.test b/mysql-test/suite/versioning/t/select2.test
index bedda892c82..d1b73fa799b 100644
--- a/mysql-test/suite/versioning/t/select2.test
+++ b/mysql-test/suite/versioning/t/select2.test
@@ -31,7 +31,7 @@ insert into t1(x, y) values(3, 33);
select sys_start from t1 where x = 3 and y = 33 into @t1;
if($MTR_COMBINATION_TRX_ID) {
set @x1= @t1;
- select vtq_commit_ts(@x1) into @t1;
+ select trt_commit_ts(@x1) into @t1;
}
select x, y from t1;
@@ -202,6 +202,14 @@ select * from (select * from t1 for system_time all, t2 for system_time all) for
--error ER_PARSE_ERROR
select * from (t1 for system_time all join t2 for system_time all) for system_time all;
+--echo # MDEV-16043 Assertion thd->Item_change_list::is_empty() failed in mysql_parse upon SELECT from a view reading from a versioned table
+create or replace table t1 (a int) with system versioning;
+create or replace view v1 as select * from t1;
+prepare stmt from "select * from t1 where exp( '20010609211642053929' )";
+--error ER_DATA_OUT_OF_RANGE
+execute stmt;
+select a from v1;
+
drop view v1;
drop table t1, t2;