Commit c7f9cf12 authored by unknown's avatar unknown

Tests which use INSERT DELAYED or MERGE tables should explicitely

specify that they want a MyISAM table, otherwise they fail
when run with --default-storage-engine=maria.


mysql-test/extra/rpl_tests/rpl_flsh_tbls.test:
  uses INSERT DELAYED so has to specify MyISAM
mysql-test/extra/rpl_tests/rpl_insert_delayed.test:
  uses INSERT DELAYED so has to specify MyISAM
mysql-test/r/query_cache.result:
  result update
mysql-test/r/rpl_insert.result:
  result update
mysql-test/r/rpl_stm_flsh_tbls.result:
  result update
mysql-test/r/rpl_stm_insert_delayed.result:
  result update
mysql-test/r/rpl_switch_stm_row_mixed.result:
  result update
mysql-test/r/subselect.result:
  result update
mysql-test/t/query_cache.test:
  uses MERGE so has to specify MyISAM
mysql-test/t/query_cache_merge.test:
  uses MERGE so has to specify MyISAM
mysql-test/t/rpl_insert.test:
  uses INSERT DELAYED so has to specify MyISAM
mysql-test/t/rpl_stm_flsh_tbls.test:
  specifying the engine lengthens the query in binlog so shifts
  positions
mysql-test/t/rpl_switch_stm_row_mixed.test:
  uses INSERT DELAYED so has to specify MyISAM
mysql-test/t/subselect.test:
  uses INSERT DELAYED so has to specify MyISAM
parent 711a8201
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
let $SERVER_VERSION=`select version()`; let $SERVER_VERSION=`select version()`;
create table t1 (a int); create table t1 (a int) ENGINE=MyISAM;
insert into t1 values (10); insert into t1 values (10);
create table t2 (a int); create table t2 (a int) ENGINE=MyISAM;
create table t3 (a int) engine=merge union(t1); create table t3 (a int) engine=merge union(t1);
create table t4 (a int); create table t4 (a int);
# We force the slave to open t3 (because we want to try confusing him) with this : # We force the slave to open t3 (because we want to try confusing him) with this :
......
...@@ -17,7 +17,7 @@ select @@global.binlog_format; ...@@ -17,7 +17,7 @@ select @@global.binlog_format;
# happened only in statement-based binlogging. # happened only in statement-based binlogging.
# #
CREATE TABLE t1 (id INT primary key auto_increment, name VARCHAR(64)); CREATE TABLE t1 (id INT primary key auto_increment, name VARCHAR(64)) ENGINE=MyISAM;
let $query = "INSERT DELAYED INTO t1 VALUES (null, 'Dr. No'), (null, 'From Russia With Love'), (null, 'Goldfinger'), (null, 'Thunderball'), (null, 'You Only Live Twice')"; let $query = "INSERT DELAYED INTO t1 VALUES (null, 'Dr. No'), (null, 'From Russia With Love'), (null, 'Goldfinger'), (null, 'Thunderball'), (null, 'You Only Live Twice')";
--exec $MYSQL_SLAP --silent --concurrency=5 --iterations=200 --query=$query --delimiter=";" --exec $MYSQL_SLAP --silent --concurrency=5 --iterations=200 --query=$query --delimiter=";"
......
...@@ -42,9 +42,9 @@ drop table t1; ...@@ -42,9 +42,9 @@ drop table t1;
show status like "Qcache_queries_in_cache"; show status like "Qcache_queries_in_cache";
Variable_name Value Variable_name Value
Qcache_queries_in_cache 0 Qcache_queries_in_cache 0
create table t1 (a int not null); create table t1 (a int not null) ENGINE=MyISAM;
insert into t1 values (1),(2),(3); insert into t1 values (1),(2),(3);
create table t2 (a int not null); create table t2 (a int not null) ENGINE=MyISAM;
insert into t2 values (4),(5),(6); insert into t2 values (4),(5),(6);
create table t3 (a int not null) engine=MERGE UNION=(t1,t2) INSERT_METHOD=FIRST; create table t3 (a int not null) engine=MERGE UNION=(t1,t2) INSERT_METHOD=FIRST;
select * from t3; select * from t3;
...@@ -460,7 +460,7 @@ Qcache_queries_in_cache 2 ...@@ -460,7 +460,7 @@ Qcache_queries_in_cache 2
drop table t1; drop table t1;
flush query cache; flush query cache;
reset query cache; reset query cache;
create table t1 (a int not null); create table t1 (a int not null) ENGINE=MyISAM;
insert into t1 values (1),(2),(3); insert into t1 values (1),(2),(3);
select * from t1; select * from t1;
a a
......
...@@ -9,7 +9,7 @@ drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; ...@@ -9,7 +9,7 @@ drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave; start slave;
CREATE SCHEMA IF NOT EXISTS mysqlslap; CREATE SCHEMA IF NOT EXISTS mysqlslap;
USE mysqlslap; USE mysqlslap;
CREATE TABLE t1 (id INT, name VARCHAR(64)); CREATE TABLE t1 (id INT, name VARCHAR(64)) ENGINE=MyISAM;
SELECT COUNT(*) FROM mysqlslap.t1; SELECT COUNT(*) FROM mysqlslap.t1;
COUNT(*) COUNT(*)
5000 5000
......
...@@ -4,21 +4,21 @@ reset master; ...@@ -4,21 +4,21 @@ reset master;
reset slave; reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave; start slave;
create table t1 (a int); create table t1 (a int) ENGINE=MyISAM;
insert into t1 values (10); insert into t1 values (10);
create table t2 (a int); create table t2 (a int) ENGINE=MyISAM;
create table t3 (a int) engine=merge union(t1); create table t3 (a int) engine=merge union(t1);
create table t4 (a int); create table t4 (a int);
insert into t4 select * from t3; insert into t4 select * from t3;
rename table t1 to t5, t2 to t1; rename table t1 to t5, t2 to t1;
flush no_write_to_binlog tables; flush no_write_to_binlog tables;
SHOW BINLOG EVENTS FROM 656 ; SHOW BINLOG EVENTS FROM 684 ;
Log_name Pos Event_type Server_id End_log_pos Info Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Query 1 # use `test`; rename table t1 to t5, t2 to t1 master-bin.000001 # Query 1 # use `test`; rename table t1 to t5, t2 to t1
select * from t3; select * from t3;
a a
flush tables; flush tables;
SHOW BINLOG EVENTS FROM 656 ; SHOW BINLOG EVENTS FROM 684 ;
Log_name Pos Event_type Server_id End_log_pos Info Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Query 1 # use `test`; rename table t1 to t5, t2 to t1 master-bin.000001 # Query 1 # use `test`; rename table t1 to t5, t2 to t1
master-bin.000001 # Query 1 # use `test`; flush tables master-bin.000001 # Query 1 # use `test`; flush tables
......
...@@ -11,7 +11,7 @@ USE mysqlslap; ...@@ -11,7 +11,7 @@ USE mysqlslap;
select @@global.binlog_format; select @@global.binlog_format;
@@global.binlog_format @@global.binlog_format
STATEMENT STATEMENT
CREATE TABLE t1 (id INT primary key auto_increment, name VARCHAR(64)); CREATE TABLE t1 (id INT primary key auto_increment, name VARCHAR(64)) ENGINE=MyISAM;
FLUSH TABLE t1; FLUSH TABLE t1;
SELECT COUNT(*) FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
...@@ -51,7 +51,7 @@ USE mysqlslap; ...@@ -51,7 +51,7 @@ USE mysqlslap;
select @@global.binlog_format; select @@global.binlog_format;
@@global.binlog_format @@global.binlog_format
MIXED MIXED
CREATE TABLE t1 (id INT primary key auto_increment, name VARCHAR(64)); CREATE TABLE t1 (id INT primary key auto_increment, name VARCHAR(64)) ENGINE=MyISAM;
FLUSH TABLE t1; FLUSH TABLE t1;
SELECT COUNT(*) FROM t1; SELECT COUNT(*) FROM t1;
COUNT(*) COUNT(*)
......
...@@ -135,7 +135,7 @@ execute stmt1 using @string; ...@@ -135,7 +135,7 @@ execute stmt1 using @string;
deallocate prepare stmt1; deallocate prepare stmt1;
insert into t1 values(concat("for_23_",UUID())); insert into t1 values(concat("for_23_",UUID()));
insert into t1 select "yesterday_24_"; insert into t1 select "yesterday_24_";
create table t2 select rpad(UUID(),100,' '); create table t2 ENGINE=MyISAM select rpad(UUID(),100,' ');
create table t3 select 1 union select UUID(); create table t3 select 1 union select UUID();
create table t4 select * from t1 where 3 in (select 1 union select 2 union select UUID() union select 3); create table t4 select * from t1 where 3 in (select 1 union select 2 union select UUID() union select 3);
create table t5 select * from t1 where 3 in (select 1 union select 2 union select curdate() union select 3); create table t5 select * from t1 where 3 in (select 1 union select 2 union select curdate() union select 3);
...@@ -453,7 +453,7 @@ master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F ...@@ -453,7 +453,7 @@ master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # use `mysqltest1`; insert into t1 select "yesterday_24_" master-bin.000001 # Query # # use `mysqltest1`; insert into t1 select "yesterday_24_"
master-bin.000001 # Query # # use `mysqltest1`; CREATE TABLE `t2` ( master-bin.000001 # Query # # use `mysqltest1`; CREATE TABLE `t2` (
`rpad(UUID(),100,' ')` varchar(100) CHARACTER SET utf8 NOT NULL DEFAULT '' `rpad(UUID(),100,' ')` varchar(100) CHARACTER SET utf8 NOT NULL DEFAULT ''
) ) ENGINE=MyISAM
master-bin.000001 # Table_map # # table_id: # (mysqltest1.t2) master-bin.000001 # Table_map # # table_id: # (mysqltest1.t2)
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # use `mysqltest1`; CREATE TABLE `t3` ( master-bin.000001 # Query # # use `mysqltest1`; CREATE TABLE `t3` (
...@@ -757,7 +757,7 @@ master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F ...@@ -757,7 +757,7 @@ master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # use `mysqltest1`; insert into t1 select "yesterday_24_" master-bin.000001 # Query # # use `mysqltest1`; insert into t1 select "yesterday_24_"
master-bin.000001 # Query # # use `mysqltest1`; CREATE TABLE `t2` ( master-bin.000001 # Query # # use `mysqltest1`; CREATE TABLE `t2` (
`rpad(UUID(),100,' ')` varchar(100) CHARACTER SET utf8 NOT NULL DEFAULT '' `rpad(UUID(),100,' ')` varchar(100) CHARACTER SET utf8 NOT NULL DEFAULT ''
) ) ENGINE=MyISAM
master-bin.000001 # Table_map # # table_id: # (mysqltest1.t2) master-bin.000001 # Table_map # # table_id: # (mysqltest1.t2)
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
master-bin.000001 # Query # # use `mysqltest1`; CREATE TABLE `t3` ( master-bin.000001 # Query # # use `mysqltest1`; CREATE TABLE `t3` (
......
...@@ -627,8 +627,8 @@ a b ...@@ -627,8 +627,8 @@ a b
33 10 33 10
22 11 22 11
drop table t11, t12, t2; drop table t11, t12, t2;
CREATE TABLE t1 (x int); CREATE TABLE t1 (x int) ENGINE=MyISAM;
create table t2 (a int); create table t2 (a int) ENGINE=MyISAM;
create table t3 (b int); create table t3 (b int);
insert into t2 values (1); insert into t2 values (1);
insert into t3 values (1),(2); insert into t3 values (1),(2);
...@@ -675,7 +675,7 @@ x ...@@ -675,7 +675,7 @@ x
11 11
2 2
drop table t1, t2, t3; drop table t1, t2, t3;
CREATE TABLE t1 (x int not null, y int, primary key (x)); CREATE TABLE t1 (x int not null, y int, primary key (x)) ENGINE=MyISAM;
create table t2 (a int); create table t2 (a int);
create table t3 (a int); create table t3 (a int);
insert into t2 values (1); insert into t2 values (1);
......
...@@ -45,9 +45,9 @@ show status like "Qcache_queries_in_cache"; ...@@ -45,9 +45,9 @@ show status like "Qcache_queries_in_cache";
# #
# MERGE TABLES with INSERT/UPDATE and DELETE # MERGE TABLES with INSERT/UPDATE and DELETE
# #
create table t1 (a int not null); create table t1 (a int not null) ENGINE=MyISAM;
insert into t1 values (1),(2),(3); insert into t1 values (1),(2),(3);
create table t2 (a int not null); create table t2 (a int not null) ENGINE=MyISAM;
insert into t2 values (4),(5),(6); insert into t2 values (4),(5),(6);
create table t3 (a int not null) engine=MERGE UNION=(t1,t2) INSERT_METHOD=FIRST; create table t3 (a int not null) engine=MERGE UNION=(t1,t2) INSERT_METHOD=FIRST;
# insert # insert
...@@ -294,7 +294,7 @@ drop table t1; ...@@ -294,7 +294,7 @@ drop table t1;
flush query cache; flush query cache;
reset query cache; reset query cache;
create table t1 (a int not null); create table t1 (a int not null) ENGINE=MyISAM;
insert into t1 values (1),(2),(3); insert into t1 values (1),(2),(3);
select * from t1; select * from t1;
select * from t1; select * from t1;
......
...@@ -19,7 +19,7 @@ let $1 = 257; ...@@ -19,7 +19,7 @@ let $1 = 257;
while ($1) while ($1)
{ {
eval drop table if exists t$1; eval drop table if exists t$1;
eval create table t$1(a int); eval create table t$1(a int) ENGINE=MyISAM;
eval insert into t$1 values (1),(2); eval insert into t$1 values (1),(2);
dec $1; dec $1;
} }
......
...@@ -11,7 +11,7 @@ CREATE SCHEMA IF NOT EXISTS mysqlslap; ...@@ -11,7 +11,7 @@ CREATE SCHEMA IF NOT EXISTS mysqlslap;
USE mysqlslap; USE mysqlslap;
--enable_warnings --enable_warnings
CREATE TABLE t1 (id INT, name VARCHAR(64)); CREATE TABLE t1 (id INT, name VARCHAR(64)) ENGINE=MyISAM;
let $query = "INSERT DELAYED INTO t1 VALUES (1, 'Dr. No'), (2, 'From Russia With Love'), (3, 'Goldfinger'), (4, 'Thunderball'), (5, 'You Only Live Twice')"; let $query = "INSERT DELAYED INTO t1 VALUES (1, 'Dr. No'), (2, 'From Russia With Love'), (3, 'Goldfinger'), (4, 'Thunderball'), (5, 'You Only Live Twice')";
--exec $MYSQL_SLAP --silent --concurrency=5 --iterations=200 --query=$query --delimiter=";" --exec $MYSQL_SLAP --silent --concurrency=5 --iterations=200 --query=$query --delimiter=";"
......
# depends on the binlog output # depends on the binlog output
--source include/have_binlog_format_mixed_or_statement.inc --source include/have_binlog_format_mixed_or_statement.inc
let $rename_event_pos= 656; let $rename_event_pos= 684;
-- source extra/rpl_tests/rpl_flsh_tbls.test -- source extra/rpl_tests/rpl_flsh_tbls.test
# End of 4.1 tests # End of 4.1 tests
......
...@@ -140,7 +140,7 @@ insert into t1 select "yesterday_24_"; ...@@ -140,7 +140,7 @@ insert into t1 select "yesterday_24_";
# Test of CREATE TABLE SELECT # Test of CREATE TABLE SELECT
create table t2 select rpad(UUID(),100,' '); create table t2 ENGINE=MyISAM select rpad(UUID(),100,' ');
create table t3 select 1 union select UUID(); create table t3 select 1 union select UUID();
create table t4 select * from t1 where 3 in (select 1 union select 2 union select UUID() union select 3); create table t4 select * from t1 where 3 in (select 1 union select 2 union select UUID() union select 3);
create table t5 select * from t1 where 3 in (select 1 union select 2 union select curdate() union select 3); create table t5 select * from t1 where 3 in (select 1 union select 2 union select curdate() union select 3);
......
...@@ -335,8 +335,8 @@ select * from t12; ...@@ -335,8 +335,8 @@ select * from t12;
drop table t11, t12, t2; drop table t11, t12, t2;
#insert with subselects #insert with subselects
CREATE TABLE t1 (x int); CREATE TABLE t1 (x int) ENGINE=MyISAM;
create table t2 (a int); create table t2 (a int) ENGINE=MyISAM;
create table t3 (b int); create table t3 (b int);
insert into t2 values (1); insert into t2 values (1);
insert into t3 values (1),(2); insert into t3 values (1),(2);
...@@ -367,7 +367,7 @@ select * from t1; ...@@ -367,7 +367,7 @@ select * from t1;
drop table t1, t2, t3; drop table t1, t2, t3;
#replace with subselects #replace with subselects
CREATE TABLE t1 (x int not null, y int, primary key (x)); CREATE TABLE t1 (x int not null, y int, primary key (x)) ENGINE=MyISAM;
create table t2 (a int); create table t2 (a int);
create table t3 (a int); create table t3 (a int);
insert into t2 values (1); insert into t2 values (1);
......
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