From: Mattias Jonsson Date: November 16 2010 1:09am Subject: bzr push into mysql-trunk branch (mattias.jonsson:3340 to 3344) List-Archive: http://lists.mysql.com/commits/123966 Message-Id: <201011160110.oAFMP0Rh011484@acsinet15.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 3344 Mattias Jonsson 2010-11-16 [merge] merge modified: mysql-test/t/disabled.def 3343 Mattias Jonsson 2010-11-16 [merge] merge modified: mysql-test/r/partition_exchange.result mysql-test/t/partition_exchange.test sql/sql_partition_admin.cc 3342 Mattias Jonsson 2010-11-16 [merge] merge modified: mysql-test/r/partition_exchange.result mysql-test/t/partition_exchange.test sql/sql_partition_admin.cc sql/sql_yacc.yy 3341 Mattias Jonsson 2010-11-16 [merge] merge modified: mysql-test/collections/default.weekly mysql-test/r/information_schema-big.result mysql-test/r/not_embedded_server.result mysql-test/r/partition.result mysql-test/r/variables-big.result mysql-test/suite/parts/inc/partition_auto_increment.inc mysql-test/suite/parts/r/partition_auto_increment_blackhole.result mysql-test/suite/parts/r/partition_auto_increment_innodb.result mysql-test/suite/parts/r/partition_auto_increment_memory.result mysql-test/suite/parts/r/partition_auto_increment_myisam.result mysql-test/t/disabled.def mysql-test/t/not_embedded_server.test mysql-test/t/partition.test mysql-test/t/variables-big.test sql/ha_partition.cc sql/handler.h sql/sql_class.cc sql/sql_insert.cc sql/sql_prepare.cc sql/sql_update.cc 3340 Alexander Nozdrin 2010-11-15 [merge] Auto-merge from mysql-trunk. modified: mysql-test/collections/default.experimental === modified file 'mysql-test/collections/default.weekly' --- a/mysql-test/collections/default.weekly 2010-09-24 09:39:47 +0000 +++ b/mysql-test/collections/default.weekly 2010-11-16 00:11:06 +0000 @@ -1,2 +1,2 @@ perl mysql-test-run.pl --timer --force --comment=1st --experimental=collections/default.experimental 1st -perl mysql-test-run.pl --timer --force --comment=big-tests --experimental=collections/default.experimental --vardir=var-big-tests --big-test --testcase-timeout=60 --suite-timeout=600 parts.part_supported_sql_func_innodb parts.partition_alter1_1_2_innodb parts.partition_alter1_1_2_ndb parts.partition_alter1_1_ndb parts.partition_alter1_2_innodb parts.partition_alter1_2_ndb parts.partition_alter2_1_1_innodb parts.partition_alter2_1_2_innodb parts.partition_alter2_2_2_innodb parts.partition_alter4_innodb main.variables-big rpl_ndb.rpl_truncate_7ndb_2 +perl mysql-test-run.pl --timer --force --comment=big-tests --experimental=collections/default.experimental --vardir=var-big-tests --big-test --testcase-timeout=60 --suite-timeout=600 large_tests.alter_table main.alter_table-big main.archive-big main.count_distinct3 main.create-big main.events_stress main.events_time_zone main.information_schema-big main.log_tables-big main.merge-big main.mysqlbinlog_row_big main.read_many_rows_innodb main.ssl-big main.sum_distinct-big main.type_newdecimal-big main.variables-big parts.part_supported_sql_func_innodb parts.partition_alter1_1_2_innodb parts.partition_alter1_1_2_ndb parts.partition_alter1_1_ndb parts.partition_alter1_2_innodb parts.partition_alter1_2_ndb parts.partition_alter2_1_1_innodb parts.partition_alter2_1_2_innodb parts.partition_alter2_2_2_innodb parts.partition_alter4_innodb rpl_ndb.rpl_truncate_7ndb_2 === modified file 'mysql-test/r/information_schema-big.result' --- a/mysql-test/r/information_schema-big.result 2009-10-05 14:22:48 +0000 +++ b/mysql-test/r/information_schema-big.result 2010-11-16 00:11:06 +0000 @@ -30,6 +30,7 @@ FILES TABLE_SCHEMA GLOBAL_STATUS VARIABLE_NAME GLOBAL_VARIABLES VARIABLE_NAME KEY_COLUMN_USAGE CONSTRAINT_SCHEMA +PARAMETERS SPECIFIC_SCHEMA PARTITIONS TABLE_SCHEMA PLUGINS PLUGIN_NAME PROCESSLIST ID @@ -42,6 +43,7 @@ SESSION_STATUS VARIABLE_NAME SESSION_VARIABLES VARIABLE_NAME STATISTICS TABLE_SCHEMA TABLES TABLE_SCHEMA +TABLESPACES TABLESPACE_NAME TABLE_CONSTRAINTS CONSTRAINT_SCHEMA TABLE_PRIVILEGES TABLE_SCHEMA TRIGGERS TRIGGER_SCHEMA @@ -74,6 +76,7 @@ FILES TABLE_SCHEMA GLOBAL_STATUS VARIABLE_NAME GLOBAL_VARIABLES VARIABLE_NAME KEY_COLUMN_USAGE CONSTRAINT_SCHEMA +PARAMETERS SPECIFIC_SCHEMA PARTITIONS TABLE_SCHEMA PLUGINS PLUGIN_NAME PROCESSLIST ID @@ -86,6 +89,7 @@ SESSION_STATUS VARIABLE_NAME SESSION_VARIABLES VARIABLE_NAME STATISTICS TABLE_SCHEMA TABLES TABLE_SCHEMA +TABLESPACES TABLESPACE_NAME TABLE_CONSTRAINTS CONSTRAINT_SCHEMA TABLE_PRIVILEGES TABLE_SCHEMA TRIGGERS TRIGGER_SCHEMA === modified file 'mysql-test/r/not_embedded_server.result' --- a/mysql-test/r/not_embedded_server.result 2009-12-04 23:02:48 +0000 +++ b/mysql-test/r/not_embedded_server.result 2010-11-15 15:18:04 +0000 @@ -14,3 +14,32 @@ flush privileges; ERROR HY000: Table 'host' was not locked with LOCK TABLES unlock tables; drop table t1; +# +# Bug#54812: assert in Diagnostics_area::set_ok_status during EXPLAIN +# +CREATE USER nopriv_user@localhost; +connection: default +DROP TABLE IF EXISTS t1,t2,t3; +DROP FUNCTION IF EXISTS f; +CREATE TABLE t1 (key1 INT PRIMARY KEY); +CREATE TABLE t2 (key2 INT); +INSERT INTO t1 VALUES (1),(2); +CREATE FUNCTION f() RETURNS INT RETURN 1; +GRANT FILE ON *.* TO 'nopriv_user'@'localhost'; +FLUSH PRIVILEGES; +connection: con1 +SELECT MAX(key1) FROM t1 WHERE f() < 1 INTO OUTFILE 'mytest'; +ERROR 42000: execute command denied to user 'nopriv_user'@'localhost' for routine 'test.f' +INSERT INTO t2 SELECT MAX(key1) FROM t1 WHERE f() < 1; +ERROR 42000: execute command denied to user 'nopriv_user'@'localhost' for routine 'test.f' +SELECT MAX(key1) INTO @dummy FROM t1 WHERE f() < 1; +ERROR 42000: execute command denied to user 'nopriv_user'@'localhost' for routine 'test.f' +CREATE TABLE t3 (i INT) AS SELECT MAX(key1) FROM t1 WHERE f() < 1; +ERROR 42000: execute command denied to user 'nopriv_user'@'localhost' for routine 'test.f' +connection: default +DROP TABLE t1,t2; +DROP FUNCTION f; +DROP USER nopriv_user@localhost; +# +# End Bug#54812 +# === modified file 'mysql-test/r/partition.result' --- a/mysql-test/r/partition.result 2010-10-26 09:10:59 +0000 +++ b/mysql-test/r/partition.result 2010-11-16 00:21:26 +0000 @@ -1,5 +1,38 @@ drop table if exists t1, t2; # +# Bug#57778: failed primary key add to partitioned innodb table +# inconsistent and crashes +# +CREATE TABLE t1 (a INT NOT NULL, b INT NOT NULL) +PARTITION BY KEY (a) PARTITIONS 2; +INSERT INTO t1 VALUES (0,1), (0,2); +ALTER TABLE t1 ADD PRIMARY KEY (a); +ERROR 23000: Duplicate entry '0' for key 'PRIMARY' +SHOW CREATE TABLE t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` int(11) NOT NULL, + `b` int(11) NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 +/*!50100 PARTITION BY KEY (a) +PARTITIONS 2 */ +SELECT * FROM t1; +a b +0 1 +0 2 +UPDATE t1 SET a = 1, b = 1 WHERE a = 0 AND b = 2; +ALTER TABLE t1 ADD PRIMARY KEY (a); +SELECT * FROM t1; +a b +1 1 +0 1 +ALTER TABLE t1 DROP PRIMARY KEY; +SELECT * FROM t1; +a b +1 1 +0 1 +DROP TABLE t1; +# # Bug#57113: ha_partition::extra(ha_extra_function): # Assertion `m_extra_cache' failed CREATE TABLE t1 === modified file 'mysql-test/r/partition_exchange.result' --- a/mysql-test/r/partition_exchange.result 2010-10-21 22:25:09 +0000 +++ b/mysql-test/r/partition_exchange.result 2010-11-16 00:55:42 +0000 @@ -1,10 +1,24 @@ DROP TABLE IF EXISTS t1, t2, t3, t, tp, tsp, tmp; -CREATE TABLE t1 (s1 INT PRIMARY KEY) engine=innodb; -CREATE TABLE t2 (s1 INT, FOREIGN KEY (s1) REFERENCES t1 (s1)) engine=innodb; +# +# Bug#56484: !table || (!table->read_set || +# bitmap_is_set(table->read_set, field_index)) +# +CREATE TABLE t1 (a INT NOT NULL,b TIME NOT NULL DEFAULT '00:00:00') +ENGINE=MyISAM +PARTITION BY HASH (a) PARTITIONS 2; +CREATE TABLE t2 (a INT) ENGINE=MYISAM; +ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2; +ERROR HY000: Tables have different definitions +DROP TABLE t1, t2; +# +# Bug#55784: Foreign key integrity broken by alter table +# +CREATE TABLE t1 (s1 INT PRIMARY KEY) ENGINE=InnoDB; +CREATE TABLE t2 (s1 INT, FOREIGN KEY (s1) REFERENCES t1 (s1)) ENGINE=InnoDB; INSERT INTO t1 VALUES (1),(2),(3); INSERT INTO t2 VALUES (1),(2),(3); CREATE TABLE t3 (s1 INT PRIMARY KEY) -engine=innodb +ENGINE=InnoDB PARTITION BY LIST (s1) (PARTITION p1 VALUES IN (1,2,3)); ALTER TABLE t3 EXCHANGE PARTITION p1 WITH TABLE t1; @@ -135,46 +149,6 @@ a b 64 Sixty four ALTER TABLE tp EXCHANGE PARTITION p1 WITH TABLE t; ERROR HY000: Found row that does not match the partition -ALTER TABLE tp EXCHANGE PARTITION p1 WITH TABLE t IGNORE; -SHOW CREATE TABLE t; -Table Create Table -t CREATE TABLE `t` ( - `a` int(11) NOT NULL DEFAULT '0', - `b` varchar(55) DEFAULT NULL, - PRIMARY KEY (`a`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1 -SHOW CREATE TABLE tp; -Table Create Table -tp CREATE TABLE `tp` ( - `a` int(11) NOT NULL DEFAULT '0', - `b` varchar(55) DEFAULT NULL, - PRIMARY KEY (`a`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1 -/*!50100 PARTITION BY RANGE (a) -(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, - PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ -SELECT * FROM t; -a b -161 161 -162 162 -163 163 -164 164 -200 Two hundred, end of values -SELECT * FROM tp; -a b -1 First value -10 Ten -2 First value -3 Three -5 Five -50 Fifty -61 Sixty one -62 Sixty two -63 Sixty three -64 Sixty four -99 End of values -# No need to use ignore on the original partition -ALTER TABLE tp EXCHANGE PARTITION p1 WITH TABLE t; SHOW CREATE TABLE t; Table Create Table t CREATE TABLE `t` ( @@ -213,15 +187,19 @@ a b 63 Sixty three 64 Sixty four # Test list of partitions +ALTER TABLE tp EXCHANGE PARTITION p1 WITH TABLE t IGNORE; +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IGNORE' at line 1 ALTER TABLE tp EXCHANGE PARTITION p0,p1 WITH TABLE t IGNORE; ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'p1 WITH TABLE t IGNORE' at line 1 +ALTER TABLE tp EXCHANGE PARTITION p0,p1 WITH TABLE t; +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'p1 WITH TABLE t' at line 1 ALTER TABLE tp EXCHANGE PARTITION (p0,p1) WITH TABLE t; ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(p0,p1) WITH TABLE t' at line 1 -ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE (t,t2) IGNORE; -ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(t,t2) IGNORE' at line 1 +ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE (t,t2); +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(t,t2)' at line 1 ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t,t2; ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't2' at line 1 -ALTER TABLE tp EXCHANGE PARTITION non_existent WITH TABLE t IGNORE; +ALTER TABLE tp EXCHANGE PARTITION non_existent WITH TABLE t; ERROR HY000: Unknown partition 'non_existent' in table 'tp' ALTER TABLE tsp EXCHANGE PARTITION p0 WITH TABLE t; ERROR HY000: Subpartitioned table, use subpartition instead of partition @@ -280,7 +258,7 @@ a b 63 Sixty three 64 Sixty four # Test exchange partition -ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t IGNORE; +ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; SHOW CREATE TABLE t; Table Create Table t CREATE TABLE `t` ( @@ -356,46 +334,8 @@ a b 62 Sixty two 63 Sixty three 64 Sixty four -ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; -SHOW CREATE TABLE t; -Table Create Table -t CREATE TABLE `t` ( - `a` int(11) NOT NULL DEFAULT '0', - `b` varchar(55) DEFAULT NULL, - PRIMARY KEY (`a`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1 -SHOW CREATE TABLE tp; -Table Create Table -tp CREATE TABLE `tp` ( - `a` int(11) NOT NULL DEFAULT '0', - `b` varchar(55) DEFAULT NULL, - PRIMARY KEY (`a`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1 -/*!50100 PARTITION BY RANGE (a) -(PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, - PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ -SELECT * FROM t; -a b -10 Ten -2 First value -50 Fifty -61 Sixty one -62 Sixty two -63 Sixty three -64 Sixty four -SELECT * FROM tp; -a b -1 First value -161 161 -162 162 -163 163 -164 164 -200 Two hundred, end of values -3 Three -5 Five -99 End of values -# Test exchange subpartition with IGNORE -ALTER TABLE tsp EXCHANGE PARTITION sp3 WITH TABLE t IGNORE; +# Test exchange subpartition +ALTER TABLE tsp EXCHANGE PARTITION sp1 WITH TABLE t; SHOW CREATE TABLE t; Table Create Table t CREATE TABLE `t` ( @@ -420,28 +360,25 @@ SUBPARTITION BY HASH (a) SUBPARTITION sp3 ENGINE = MyISAM)) */ SELECT * FROM t; a b -161 161 -163 163 +61 Sixty one +63 Sixty three SELECT * FROM tsp; a b +1 First value 10 Ten -10 Ten +161 161 162 162 +163 163 164 164 2 First value -2 First value 200 Two hundred, end of values +3 Three +5 Five 50 Fifty -50 Fifty -61 Sixty one -61 Sixty one 62 Sixty two -62 Sixty two -63 Sixty three -63 Sixty three 64 Sixty four -64 Sixty four -ALTER TABLE tsp EXCHANGE PARTITION sp3 WITH TABLE t IGNORE; +99 End of values +ALTER TABLE tsp EXCHANGE PARTITION sp1 WITH TABLE t; ALTER TABLE t ENGINE = InnoDB; ALTER TABLE tp ENGINE = InnoDB; SHOW CREATE TABLE t; @@ -463,25 +400,25 @@ tp CREATE TABLE `tp` ( PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */ SELECT * FROM t; a b -10 Ten -2 First value -50 Fifty -61 Sixty one -62 Sixty two -63 Sixty three -64 Sixty four +1 First value +3 Three +5 Five +99 End of values SELECT * FROM tp; a b -1 First value +10 Ten 161 161 162 162 163 163 164 164 +2 First value 200 Two hundred, end of values -3 Three -5 Five -99 End of values -ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t IGNORE; +50 Fifty +61 Sixty one +62 Sixty two +63 Sixty three +64 Sixty four +ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; SHOW CREATE TABLE t; Table Create Table t CREATE TABLE `t` ( @@ -501,25 +438,25 @@ tp CREATE TABLE `tp` ( PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */ SELECT * FROM t; a b -1 First value -3 Three -5 Five -99 End of values -SELECT * FROM tp; -a b 10 Ten -161 161 -162 162 -163 163 -164 164 2 First value -200 Two hundred, end of values 50 Fifty 61 Sixty one 62 Sixty two 63 Sixty three 64 Sixty four -ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t IGNORE; +SELECT * FROM tp; +a b +1 First value +161 161 +162 162 +163 163 +164 164 +200 Two hundred, end of values +3 Three +5 Five +99 End of values +ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; # test different engines ALTER TABLE t ENGINE = MyISAM; ALTER TABLE tp ENGINE = InnoDB; @@ -540,7 +477,7 @@ tp CREATE TABLE `tp` ( /*!50100 PARTITION BY RANGE (a) (PARTITION p0 VALUES LESS THAN (100) ENGINE = InnoDB, PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */ -ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t IGNORE; +ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; ERROR HY000: The mix of handlers in the partitions is not allowed in this version of MySQL SHOW CREATE TABLE t; Table Create Table @@ -566,7 +503,7 @@ INSERT INTO tmp SELECT * FROM t; RENAME TABLE t TO tmp2, tmp TO t; ALTER TABLE tp ENGINE = MyISAM; ALTER TABLE t CHARACTER SET = koi8r COLLATE koi8r_general_ci; -ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t IGNORE; +ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; ERROR HY000: Non matching attribute 'CHARACTER SET' between partition and table DROP TABLE t; # Test multiple different table options @@ -592,7 +529,7 @@ tp CREATE TABLE `tp` ( /*!50100 PARTITION BY RANGE (a) (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ -ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t IGNORE; +ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; ERROR HY000: Non matching attribute 'MAX_ROWS' between partition and table SHOW WARNINGS; Level Code Message @@ -603,7 +540,7 @@ RENAME TABLE tmp2 TO t; ALTER TABLE t ADD KEY ba_key (b, a); ALTER TABLE tp ADD KEY ba_key (b, a); ALTER TABLE tsp ADD KEY ba_key (b, a); -ALTER TABLE tp EXCHANGE PARTITION p1 WITH TABLE t IGNORE; +ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; SHOW CREATE TABLE t; Table Create Table t CREATE TABLE `t` ( @@ -625,35 +562,35 @@ tp CREATE TABLE `tp` ( PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ SELECT * FROM t; a b -161 161 -162 162 -163 163 -164 164 -200 Two hundred, end of values -SELECT * FROM tp; -a b -1 First value 10 Ten 2 First value -3 Three -5 Five 50 Fifty 61 Sixty one 62 Sixty two 63 Sixty three 64 Sixty four +SELECT * FROM tp; +a b +1 First value +161 161 +162 162 +163 163 +164 164 +200 Two hundred, end of values +3 Three +5 Five 99 End of values -ALTER TABLE tp EXCHANGE PARTITION p1 WITH TABLE t IGNORE; +ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; ALTER TABLE t DROP KEY ba_key; -ALTER TABLE tp EXCHANGE PARTITION p1 WITH TABLE t IGNORE; +ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; ERROR HY000: Tables have different definitions ALTER TABLE t ADD KEY b_key (b); -ALTER TABLE tsp EXCHANGE PARTITION sp1 WITH TABLE t IGNORE; +ALTER TABLE tsp EXCHANGE PARTITION sp1 WITH TABLE t; ERROR HY000: Tables have different definitions ALTER TABLE t ADD KEY ba_key (b, a); ALTER TABLE t DROP KEY b_key; ALTER TABLE t CHANGE a c INT; -ALTER TABLE tsp EXCHANGE PARTITION sp1 WITH TABLE t IGNORE; +ALTER TABLE tsp EXCHANGE PARTITION sp1 WITH TABLE t; ERROR HY000: Tables have different definitions ALTER TABLE t CHANGE c a INT; # test temporary table @@ -682,7 +619,7 @@ tp CREATE TABLE `tp` ( /*!50100 PARTITION BY RANGE (a) (PARTITION p0 VALUES LESS THAN (100) ENGINE = MyISAM, PARTITION p1 VALUES LESS THAN MAXVALUE ENGINE = MyISAM) */ -ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t IGNORE; +ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; ERROR HY000: Table to exchange with partition is temporary: 't' SHOW CREATE TABLE t; Table Create Table @@ -707,7 +644,7 @@ DROP TEMPORARY TABLE t; ALTER TABLE tmp2 RENAME TO t; # Test non partitioned table ALTER TABLE tp REMOVE PARTITIONING; -ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t IGNORE; +ALTER TABLE tp EXCHANGE PARTITION p0 WITH TABLE t; ERROR HY000: Partition management on a not partitioned table is not possible DROP TABLE t, tp, tsp; # Test with general_log === modified file 'mysql-test/r/variables-big.result' --- a/mysql-test/r/variables-big.result 2009-03-30 10:03:25 +0000 +++ b/mysql-test/r/variables-big.result 2010-11-15 15:17:38 +0000 @@ -1,20 +1,20 @@ SET SESSION transaction_prealloc_size=1024*1024*1024*1; SHOW PROCESSLIST; Id User Host db Command Time State Info - root localhost test Query