Commit 53218bee authored by unknown's avatar unknown

Verify that INSERT DELAYED is disabled only for transactional

Maria tables


mysql-test/r/maria.result:
  result update (we see DELAYED is refused only for transactional
  Maria tables)
mysql-test/t/maria.test:
  verify that INSERT DELAYED is disabled only for transactional
  Maria tables
parent e3bfb897
......@@ -1832,3 +1832,27 @@ t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL
) ENGINE=MARIA DEFAULT CHARSET=latin1 ROW_FORMAT=PAGE
drop table t1;
create table t1 (a int) row_format=page;
insert delayed into t1 values(1);
ERROR HY000: Table storage engine for 't1' doesn't have this option
drop table t1;
create table t1 (a int) row_format=page transactional=0;
insert delayed into t1 values(1);
flush table t1;
select * from t1;
a
1
select count(*) from t1;
count(*)
1
drop table t1;
create table t1 (a int) row_format=dynamic;
insert delayed into t1 values(1);
flush table t1;
select * from t1;
a
1
select count(*) from t1;
count(*)
1
drop table t1;
......@@ -1118,6 +1118,24 @@ create table t1 (a int) row_format=PAGE;
show create table t1;
drop table t1;
# Verify that INSERT DELAYED is disabled only for transactional tables
create table t1 (a int) row_format=page;
--error ER_ILLEGAL_HA
insert delayed into t1 values(1);
drop table t1;
create table t1 (a int) row_format=page transactional=0;
insert delayed into t1 values(1);
flush table t1;
select * from t1;
select count(*) from t1;
drop table t1;
create table t1 (a int) row_format=dynamic;
insert delayed into t1 values(1);
flush table t1;
select * from t1;
select count(*) from t1;
drop table t1;
# End of 5.2 tests
--disable_result_log
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment