2008-02-15 18:29:53 +01:00
|
|
|
# Tests which cannot be run in embedded server.
|
|
|
|
|
|
|
|
-- source include/not_embedded.inc
|
|
|
|
-- source include/have_maria.inc
|
|
|
|
|
|
|
|
let $default_engine=`select @@session.storage_engine`;
|
|
|
|
set session storage_engine=maria;
|
|
|
|
|
|
|
|
# Verify that INSERT DELAYED is disabled only for transactional tables
|
|
|
|
# ("embedded" server translates them to plain INSERT)
|
|
|
|
|
|
|
|
create table t1 (a int) row_format=page;
|
2008-10-10 18:28:41 +03:00
|
|
|
--error ER_DELAYED_NOT_SUPPORTED
|
2008-02-15 18:29:53 +01:00
|
|
|
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;
|
|
|
|
|
|
|
|
--disable_result_log
|
|
|
|
--disable_query_log
|
|
|
|
eval set session storage_engine=$default_engine;
|
|
|
|
--enable_result_log
|
|
|
|
--enable_query_log
|