1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-16043 Assertion thd->Item_change_list::is_empty() failed in mysql_parse upon SELECT from a view reading from a versioned table

Lost restore_active_arena().
Using of Query_arena_stmt is suggested instead.
This commit is contained in:
Aleksey Midenkov
2018-04-28 14:18:02 +03:00
committed by Sergei Golubchik
parent 8b2fa0ab25
commit ce2cf855bf
3 changed files with 21 additions and 3 deletions

View File

@ -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;