blob: 8028823f9a7c7df51065105b09e9acf46f168f97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--echo #Bug #20746926: GENERATED COLUMNS: INVALID READ OF THD WHEN WARNINGS
--echo #
--echo # Testing cmp_item_datetime
connect(con1,localhost,root,,);
--disable_warnings
set sql_mode='';
--enable_warnings
create table t1 (
a date not null,
b mediumtext generated always as ((a not in (a,a))) virtual,
c timestamp generated always as ((a not in (b,b))) stored
);
insert t1(a) values(7777777777);
show warnings;
disconnect con1;
--source include/wait_until_disconnected.inc
connect(con2,localhost,root,,);
--disable_warnings
set sql_mode='';
--enable_warnings
insert t1(a) values(6666666666);
show warnings;
drop table t1;
disconnect con2;
--source include/wait_until_disconnected.inc
connection default;
|