mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
23 lines
631 B
Text
23 lines
631 B
Text
|
#
|
||
|
# This tests various issues when vcol items allocate memory (e.g. more items)
|
||
|
# not in the TABLE::expr_arena.
|
||
|
#
|
||
|
|
||
|
#
|
||
|
# MDEV-9690 concurrent queries with virtual columns crash in temporal code
|
||
|
#
|
||
|
create table t1 (a datetime,
|
||
|
# get_datetime_value
|
||
|
b int as (a > 1), # Arg_comparator
|
||
|
c int as (a in (1,2,3)), # in_datetime
|
||
|
d int as ((a,a) in ((1,1),(2,1),(NULL,1))) # cmp_item_datetime
|
||
|
);
|
||
|
show create table t1;
|
||
|
connect con1, localhost, root;
|
||
|
insert t1 (a) values ('2010-10-10 10:10:10');
|
||
|
select * from t1;
|
||
|
disconnect con1;
|
||
|
connection default;
|
||
|
select * from t1;
|
||
|
drop table t1;
|