diff options
author | unknown <mleich@four.local.lan> | 2007-10-22 20:10:51 +0200 |
---|---|---|
committer | unknown <mleich@four.local.lan> | 2007-10-22 20:10:51 +0200 |
commit | 13eaba787efd7f37bf189134a0d12e4f6d5deb25 (patch) | |
tree | 49d750858aa7e0ce87b72611a4b9cecdf46d738b /mysql-test/r | |
parent | 61db7313f589e1c312fd4dbed6415a88a3ed66ad (diff) | |
download | mariadb-git-13eaba787efd7f37bf189134a0d12e4f6d5deb25.tar.gz |
This changeset contains the following stuff:
- Fix for
Bug#28827 Partition test needs archive engine
Bug#26669 Two tests on partition fail while blackhole engine is missing
Solution: Move ARCHIVE and BLACKHOLE sub test cases to their own main test.
- The two bugs above + the fact that CSV could be also sometimes not
available --> Move also CSV sub tests out.
- Minor cleanups
- Replace error numbers with error names
- fix typos, wrong comments
- remove redundant sub test cases
- add missing drop database
- SET GLOBAL general_log = default is wrong, = 1 is correct
mysql-test/r/partition.result:
Updated results
mysql-test/t/partition.test:
Remove ARCHIVE, BLACKHOLE and CSV related sub test cases.
mysql-test/r/partition_archive.result:
Expected results
mysql-test/r/partition_blackhole.result:
Expected results
mysql-test/r/partition_csv.result:
Expected results
mysql-test/t/partition_archive.test:
Tests for the partition storage engine in connection with the
storage engine ARCHIVE.
mysql-test/t/partition_blackhole.test:
Tests for the partition storage engine in connection with the
storage engine BLACKHOLE.
mysql-test/t/partition_csv.test:
Tests for the partition storage engine in connection with the
storage engine CSV.
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/partition.result | 43 | ||||
-rw-r--r-- | mysql-test/r/partition_archive.result | 13 | ||||
-rw-r--r-- | mysql-test/r/partition_blackhole.result | 7 | ||||
-rw-r--r-- | mysql-test/r/partition_csv.result | 15 |
4 files changed, 35 insertions, 43 deletions
diff --git a/mysql-test/r/partition.result b/mysql-test/r/partition.result index 7120e3ea9e6..c367619f495 100644 --- a/mysql-test/r/partition.result +++ b/mysql-test/r/partition.result @@ -33,11 +33,6 @@ call pz(); call pz(); drop procedure pz; drop table t1; -create table t1 (a int) -engine = csv -partition by list (a) -(partition p0 values in (null)); -ERROR HY000: Engine cannot be used in partitioned tables create table t1 (a bigint) partition by range (a) (partition p0 values less than (0xFFFFFFFFFFFFFFFF), @@ -68,11 +63,6 @@ a 18446744073709551614 drop table t1; create table t1 (a int) -engine = csv -partition by list (a) -(partition p0 values in (null)); -ERROR HY000: Engine cannot be used in partitioned tables -create table t1 (a int) partition by key(a) (partition p0 engine = MEMORY); drop table t1; @@ -319,18 +309,6 @@ analyze table t1; Table Op Msg_type Msg_text test.t1 analyze status OK drop table t1; -CREATE TABLE `t1` ( -`id` int(11) default NULL -) ENGINE=BLACKHOLE DEFAULT CHARSET=latin1 PARTITION BY HASH (id) ; -SELECT * FROM t1; -id -drop table t1; -CREATE TABLE `t1` ( -`id` int(11) default NULL -) ENGINE=BLACKHOLE DEFAULT CHARSET=latin1 PARTITION BY HASH (id) ; -SELECT * FROM t1; -id -drop table t1; create table t1 (a int) partition by range (a) @@ -1050,18 +1028,6 @@ OPTIMIZE TABLE t1; Table Op Msg_type Msg_text test.t1 optimize note The storage engine for the table doesn't support optimize drop table t1; -create database db99; -use db99; -create table t1 (a int not null) -engine=archive -partition by list (a) -(partition p0 values in (1), partition p1 values in (2)); -insert into t1 values (1), (2); -create index inx on t1 (a); -alter table t1 add partition (partition p2 values in (3)); -alter table t1 drop partition p2; -use test; -drop database db99; drop procedure if exists mysqltest_1; create table t1 (a int) partition by list (a) @@ -1259,15 +1225,6 @@ INSERT INTO t1 SELECT a + 8, b FROM t1; ALTER TABLE t1 ADD PARTITION (PARTITION p1 VALUES LESS THAN (64)); ALTER TABLE t1 DROP PARTITION p1; DROP TABLE t1; -USE mysql; -SET GLOBAL general_log = 0; -ALTER TABLE general_log ENGINE = MyISAM; -ALTER TABLE general_log PARTITION BY RANGE (TO_DAYS(event_time)) -(PARTITION p0 VALUES LESS THAN (733144), PARTITION p1 VALUES LESS THAN (3000000)); -ERROR HY000: Incorrect usage of PARTITION and log table -ALTER TABLE general_log ENGINE = CSV; -SET GLOBAL general_log = default; -use test; create table t2 (b int); create table t1 (b int) PARTITION BY RANGE (t2.b) ( diff --git a/mysql-test/r/partition_archive.result b/mysql-test/r/partition_archive.result new file mode 100644 index 00000000000..dd063f6224c --- /dev/null +++ b/mysql-test/r/partition_archive.result @@ -0,0 +1,13 @@ +drop database if exists db99; +create database db99; +use db99; +create table t1 (a int not null) +engine=archive +partition by list (a) +(partition p0 values in (1), partition p1 values in (2)); +insert into t1 values (1), (2); +create index inx on t1 (a); +alter table t1 add partition (partition p2 values in (3)); +alter table t1 drop partition p2; +use test; +drop database db99; diff --git a/mysql-test/r/partition_blackhole.result b/mysql-test/r/partition_blackhole.result new file mode 100644 index 00000000000..225cc1886fd --- /dev/null +++ b/mysql-test/r/partition_blackhole.result @@ -0,0 +1,7 @@ +DROP TABLE IF EXISTS t1; +CREATE TABLE `t1` ( +`id` int(11) default NULL +) ENGINE=BLACKHOLE DEFAULT CHARSET=latin1 PARTITION BY HASH (id) ; +SELECT * FROM t1; +id +DROP TABLE t1; diff --git a/mysql-test/r/partition_csv.result b/mysql-test/r/partition_csv.result new file mode 100644 index 00000000000..b5e1dcd9541 --- /dev/null +++ b/mysql-test/r/partition_csv.result @@ -0,0 +1,15 @@ +drop table if exists t1; +create table t1 (a int) +engine = csv +partition by list (a) +(partition p0 values in (null)); +ERROR HY000: Engine cannot be used in partitioned tables +USE mysql; +SET GLOBAL general_log = 0; +ALTER TABLE general_log ENGINE = MyISAM; +ALTER TABLE general_log PARTITION BY RANGE (TO_DAYS(event_time)) +(PARTITION p0 VALUES LESS THAN (733144), +PARTITION p1 VALUES LESS THAN (3000000)); +ERROR HY000: Incorrect usage of PARTITION and log table +ALTER TABLE general_log ENGINE = CSV; +SET GLOBAL general_log = 1; |