Commit a22aa8ef authored by unknown's avatar unknown

Two test cases didn't work without Blackhole compiled into the server.


mysql-test/t/partition.test:
  Disable warnings around CREATE TABLE ... ENGINE=BLACKHOLE to make this test case work without Blackhole compiled into the server.
mysql-test/t/partition_hash.test:
  Disable warnings around CREATE TABLE ... ENGINE=BLACKHOLE to make this test case work without Blackhole compiled into the server.
parent fedd09cd
...@@ -420,9 +420,13 @@ drop table t1; ...@@ -420,9 +420,13 @@ drop table t1;
# #
# BUG 14524 # BUG 14524
# #
# Disable warnings to allow this test case to work without
# the Blackhole engine.
--disable_warnings
CREATE TABLE `t1` ( CREATE TABLE `t1` (
`id` int(11) default NULL `id` int(11) default NULL
) ENGINE=BLACKHOLE DEFAULT CHARSET=latin1 PARTITION BY HASH (id) ; ) ENGINE=BLACKHOLE DEFAULT CHARSET=latin1 PARTITION BY HASH (id) ;
--enable_warnings
SELECT * FROM t1; SELECT * FROM t1;
drop table t1; drop table t1;
...@@ -430,9 +434,13 @@ drop table t1; ...@@ -430,9 +434,13 @@ drop table t1;
# #
# BUG 14524 # BUG 14524
# #
# Disable warnings to allow this test case to work without
# the Blackhole engine.
--disable_warnings
CREATE TABLE `t1` ( CREATE TABLE `t1` (
`id` int(11) default NULL `id` int(11) default NULL
) ENGINE=BLACKHOLE DEFAULT CHARSET=latin1 PARTITION BY HASH (id) ; ) ENGINE=BLACKHOLE DEFAULT CHARSET=latin1 PARTITION BY HASH (id) ;
--enable_warnings
SELECT * FROM t1; SELECT * FROM t1;
drop table t1; drop table t1;
......
...@@ -129,7 +129,11 @@ drop table t1; ...@@ -129,7 +129,11 @@ drop table t1;
# #
# BUG# 14524 Partitions: crash if blackhole # BUG# 14524 Partitions: crash if blackhole
# #
# Disable warnings to allow this test case to run without
# the Blackhole storage engine.
--disable_warnings
CREATE TABLE t1 (s1 int) ENGINE=BLACKHOLE PARTITION BY HASH (s1); CREATE TABLE t1 (s1 int) ENGINE=BLACKHOLE PARTITION BY HASH (s1);
--enable_warnings
INSERT INTO t1 VALUES (0); INSERT INTO t1 VALUES (0);
DROP TABLE t1; DROP TABLE t1;
......
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