mariadb/mysql-test/main/long_unique_delayed.test

23 lines
629 B
Text
Raw Normal View History

--source include/not_embedded.inc
--echo #
--echo # Test insert delayed with long unique keys
--echo #
create table t1(a blob unique) engine=myisam;
insert delayed into t1 values(1),(2),(3),(56),('sachin'),('maria'),(123456789034567891),(null),(null),(123456789034567890),('maria');
insert delayed into t1 values(1),(9);
flush tables t1;
select count(*) from t1;
drop table t1;
--echo #
--echo # MDEV-19848
--echo # Server crashes in check_vcol_forward_refs upon INSERT DELAYED into
--echo # table with long blob key
--echo #
CREATE TABLE t1 (a BLOB, UNIQUE(a)) ENGINE=MyISAM;
INSERT DELAYED t1 () VALUES ();
DROP TABLE t1;