mariadb/mysql-test/suite/gcol/t/gcol_bug20746926.test
Sergei Golubchik a418c99200 gcol mysql-test suite from 5.7
update tests and results, fix bugs
2016-12-12 20:27:36 +01:00

28 lines
706 B
Text

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