Commit 330f9fb5 authored by Mattias Jonsson's avatar Mattias Jonsson

merge into an updated 5.1-bugteam.

parents 664bb23a 3d156e22
SET @old_general_log= @@global.general_log; SET @old_general_log= @@global.general_log;
drop table if exists t1, t2; drop table if exists t1, t2;
CREATE TABLE t1 (a INT, FOREIGN KEY (a) REFERENCES t0 (a))
ENGINE=MyISAM
PARTITION BY HASH (a);
ERROR HY000: Foreign key clause is not yet supported in conjunction with partitioning
CREATE TABLE t1 ( CREATE TABLE t1 (
pk INT NOT NULL AUTO_INCREMENT, pk INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY (pk) PRIMARY KEY (pk)
......
drop table if exists t1; drop table if exists t1;
CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a));
INSERT INTO t1 VALUES (1),(1);
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
DROP TABLE t1;
CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a))
PARTITION BY KEY (a) PARTITIONS 2;
INSERT INTO t1 VALUES (1),(1);
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
DROP TABLE t1;
CREATE TABLE t1 (a INT) CREATE TABLE t1 (a INT)
PARTITION BY HASH (a) PARTITION BY HASH (a)
( PARTITION p0 ENGINE=MyISAM, ( PARTITION p0 ENGINE=MyISAM,
......
...@@ -25,13 +25,13 @@ ALTER TABLE t1 DROP PARTITION x10, x1, x2, x3; ...@@ -25,13 +25,13 @@ ALTER TABLE t1 DROP PARTITION x10, x1, x2, x3;
ERROR HY000: Error in list of partitions to DROP ERROR HY000: Error in list of partitions to DROP
ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10 INTO ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10 INTO
(PARTITION x11 VALUES LESS THAN (22)); (PARTITION x11 VALUES LESS THAN (22));
ERROR HY000: More partitions to reorganise than there are partitions ERROR HY000: More partitions to reorganize than there are partitions
ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2 INTO ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2 INTO
(PARTITION x3 VALUES LESS THAN (6)); (PARTITION x3 VALUES LESS THAN (6));
ERROR HY000: Duplicate partition name x3 ERROR HY000: Duplicate partition name x3
ALTER TABLE t1 REORGANIZE PARTITION x0, x2 INTO ALTER TABLE t1 REORGANIZE PARTITION x0, x2 INTO
(PARTITION x11 VALUES LESS THAN (2)); (PARTITION x11 VALUES LESS THAN (2));
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE t1 REORGANIZE PARTITION x0, x1, x1 INTO ALTER TABLE t1 REORGANIZE PARTITION x0, x1, x1 INTO
(PARTITION x11 VALUES LESS THAN (4)); (PARTITION x11 VALUES LESS THAN (4));
ERROR HY000: Error in list of partitions to REORGANIZE ERROR HY000: Error in list of partitions to REORGANIZE
......
...@@ -29,10 +29,11 @@ INSERT INTO t1 VALUES (5), (16); ...@@ -29,10 +29,11 @@ INSERT INTO t1 VALUES (5), (16);
if (!$mysql_errno) if (!$mysql_errno)
{ {
echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY; echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY;
echo # mysql_errno: $mysql_errno;
} }
INSERT INTO t1 VALUES (17); INSERT INTO t1 VALUES (17);
INSERT INTO t1 VALUES (19), (NULL); INSERT INTO t1 VALUES (19), (NULL);
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 VALUES (NULL), (10), (NULL); INSERT INTO t1 VALUES (NULL), (10), (NULL);
if ($mysql_errno) if ($mysql_errno)
{ {
...@@ -116,16 +117,17 @@ ENGINE=$engine ...@@ -116,16 +117,17 @@ ENGINE=$engine
PARTITION BY HASH(c2) PARTITION BY HASH(c2)
PARTITIONS 2; PARTITIONS 2;
INSERT INTO t1 VALUES (1, NULL); INSERT INTO t1 VALUES (1, NULL);
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_KEY, ER_DUP_ENTRY
INSERT INTO t1 VALUES (1, 1), (99, 99); INSERT INTO t1 VALUES (1, 1), (99, 99);
if (!$mysql_errno) if (!$mysql_errno)
{ {
echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY; echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY;
echo # mysql_errno: $mysql_errno;
} }
INSERT INTO t1 VALUES (1, NULL); INSERT INTO t1 VALUES (1, NULL);
let $old_sql_mode = `select @@session.sql_mode`; let $old_sql_mode = `select @@session.sql_mode`;
SET @@session.sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET @@session.sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 VALUES (1, 0); INSERT INTO t1 VALUES (1, 0);
if ($mysql_errno) if ($mysql_errno)
{ {
...@@ -140,7 +142,7 @@ eval CREATE TABLE t1 ( ...@@ -140,7 +142,7 @@ eval CREATE TABLE t1 (
ENGINE=$engine ENGINE=$engine
PARTITION BY HASH(c2) PARTITION BY HASH(c2)
PARTITIONS 2; PARTITIONS 2;
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 VALUES (1, 0); INSERT INTO t1 VALUES (1, 0);
if ($mysql_errno) if ($mysql_errno)
{ {
...@@ -163,26 +165,27 @@ PARTITION BY HASH(c1) ...@@ -163,26 +165,27 @@ PARTITION BY HASH(c1)
PARTITIONS 2; PARTITIONS 2;
INSERT INTO t1 VALUES (2), (4), (NULL); INSERT INTO t1 VALUES (2), (4), (NULL);
INSERT INTO t1 VALUES (0); INSERT INTO t1 VALUES (0);
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_KEY, ER_DUP_ENTRY
INSERT INTO t1 VALUES (5), (16); INSERT INTO t1 VALUES (5), (16);
if (!$mysql_errno) if (!$mysql_errno)
{ {
echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY; echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY;
echo # mysql_errno: $mysql_errno;
} }
INSERT INTO t1 VALUES (17), (19), (NULL); INSERT INTO t1 VALUES (17), (19), (NULL);
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 VALUES (NULL), (10), (NULL); INSERT INTO t1 VALUES (NULL), (10), (NULL);
if ($mysql_errno) if ($mysql_errno)
{ {
echo # ERROR (only OK if Archive) mysql_errno: $mysql_errno; echo # ERROR (only OK if Archive) mysql_errno: $mysql_errno;
} }
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 VALUES (NULL), (9); INSERT INTO t1 VALUES (NULL), (9);
if ($mysql_errno) if ($mysql_errno)
{ {
echo # ERROR (only OK if Archive) mysql_errno: $mysql_errno; echo # ERROR (only OK if Archive) mysql_errno: $mysql_errno;
} }
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 VALUES (59), (55); INSERT INTO t1 VALUES (59), (55);
if ($mysql_errno) if ($mysql_errno)
{ {
...@@ -270,7 +273,7 @@ SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' ...@@ -270,7 +273,7 @@ SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test'
AND TABLE_NAME='t1'; AND TABLE_NAME='t1';
SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test'
AND TABLE_NAME='t1'; AND TABLE_NAME='t1';
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 VALUES (10); INSERT INTO t1 VALUES (10);
if ($mysql_errno) if ($mysql_errno)
{ {
...@@ -281,7 +284,7 @@ INSERT INTO t1 VALUES (NULL); ...@@ -281,7 +284,7 @@ INSERT INTO t1 VALUES (NULL);
SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test' SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test'
AND TABLE_NAME='t1'; AND TABLE_NAME='t1';
INSERT INTO t1 VALUES (NULL); INSERT INTO t1 VALUES (NULL);
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 VALUES (15); INSERT INTO t1 VALUES (15);
if ($mysql_errno) if ($mysql_errno)
{ {
...@@ -340,7 +343,7 @@ connection con1; ...@@ -340,7 +343,7 @@ connection con1;
INSERT INTO t1 (c1) VALUES (NULL); INSERT INTO t1 (c1) VALUES (NULL);
connection default; connection default;
-- echo # con default -- echo # con default
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 (c1) VALUES (16); INSERT INTO t1 (c1) VALUES (16);
if ($mysql_errno) if ($mysql_errno)
{ {
...@@ -426,7 +429,7 @@ connection con1; ...@@ -426,7 +429,7 @@ connection con1;
INSERT INTO t1 (c1) VALUES (NULL); INSERT INTO t1 (c1) VALUES (NULL);
connection default; connection default;
-- echo # con default -- echo # con default
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 (c1) VALUES (16); INSERT INTO t1 (c1) VALUES (16);
if ($mysql_errno) if ($mysql_errno)
{ {
...@@ -483,6 +486,7 @@ INSERT INTO t1 VALUES (1, 1); ...@@ -483,6 +486,7 @@ INSERT INTO t1 VALUES (1, 1);
if (!$mysql_errno) if (!$mysql_errno)
{ {
echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY; echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY;
echo # mysql_errno: $mysql_errno;
} }
INSERT INTO t1 VALUES (1, NULL); INSERT INTO t1 VALUES (1, NULL);
INSERT INTO t1 VALUES (2, NULL), (3, 11), (3, NULL), (2, 0); INSERT INTO t1 VALUES (2, NULL), (3, 11), (3, NULL), (2, 0);
...@@ -492,6 +496,7 @@ INSERT INTO t1 VALUES (2, 2); ...@@ -492,6 +496,7 @@ INSERT INTO t1 VALUES (2, 2);
if (!$mysql_errno) if (!$mysql_errno)
{ {
echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY; echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY;
echo # mysql_errno: $mysql_errno;
} }
INSERT INTO t1 VALUES (2, 22); INSERT INTO t1 VALUES (2, 22);
INSERT INTO t1 VALUES (2, NULL); INSERT INTO t1 VALUES (2, NULL);
...@@ -527,16 +532,18 @@ INSERT INTO t1 VALUES (1, 1); ...@@ -527,16 +532,18 @@ INSERT INTO t1 VALUES (1, 1);
if (!$mysql_errno) if (!$mysql_errno)
{ {
echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY; echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY;
echo # mysql_errno: $mysql_errno;
} }
INSERT INTO t1 VALUES (1, NULL); INSERT INTO t1 VALUES (1, NULL);
INSERT INTO t1 VALUES (2, NULL); INSERT INTO t1 VALUES (2, NULL);
INSERT INTO t1 VALUES (3, NULL); INSERT INTO t1 VALUES (3, NULL);
INSERT INTO t1 VALUES (3, NULL), (2, 0), (2, NULL); INSERT INTO t1 VALUES (3, NULL), (2, 0), (2, NULL);
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 VALUES (2, 2); INSERT INTO t1 VALUES (2, 2);
if (!$mysql_errno) if (!$mysql_errno)
{ {
echo # ERROR (only OK if Blackhole/NDB) should give ER_DUP_KEY or ER_DUP_ENTRY; echo # ERROR (only OK if Blackhole/NDB) should give ER_DUP_KEY or ER_DUP_ENTRY;
echo # mysql_errno: $mysql_errno;
} }
INSERT INTO t1 VALUES (2, 22), (2, NULL); INSERT INTO t1 VALUES (2, 22), (2, NULL);
SELECT * FROM t1 ORDER BY c1,c2; SELECT * FROM t1 ORDER BY c1,c2;
...@@ -550,7 +557,7 @@ eval CREATE TABLE t1 (c1 INT NOT NULL AUTO_INCREMENT, PRIMARY KEY (c1)) ...@@ -550,7 +557,7 @@ eval CREATE TABLE t1 (c1 INT NOT NULL AUTO_INCREMENT, PRIMARY KEY (c1))
PARTITION BY HASH(c1) PARTITION BY HASH(c1)
PARTITIONS 2; PARTITIONS 2;
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 (c1) VALUES (4); INSERT INTO t1 (c1) VALUES (4);
if ($mysql_errno) if ($mysql_errno)
{ {
...@@ -568,7 +575,7 @@ let $old_sql_mode = `select @@session.sql_mode`; ...@@ -568,7 +575,7 @@ let $old_sql_mode = `select @@session.sql_mode`;
SET @@session.sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET @@session.sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
INSERT INTO t1 (c1) VALUES (300); INSERT INTO t1 (c1) VALUES (300);
SHOW CREATE TABLE t1; SHOW CREATE TABLE t1;
-- error 0, ER_DUP_KEY -- error 0, ER_DUP_ENTRY, ER_DUP_KEY
INSERT INTO t1 (c1) VALUES (0); INSERT INTO t1 (c1) VALUES (0);
if ($mysql_errno) if ($mysql_errno)
{ {
......
...@@ -94,7 +94,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -94,7 +94,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -617,7 +617,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -617,7 +617,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -1161,7 +1161,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -1161,7 +1161,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -1697,7 +1697,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -1697,7 +1697,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -2233,7 +2233,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -2233,7 +2233,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -2780,7 +2780,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -2780,7 +2780,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -3327,7 +3327,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -3327,7 +3327,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -3866,7 +3866,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -3866,7 +3866,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -4384,7 +4384,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -4384,7 +4384,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -4907,7 +4907,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -4907,7 +4907,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -5451,7 +5451,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -5451,7 +5451,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -5987,7 +5987,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -5987,7 +5987,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -6523,7 +6523,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -6523,7 +6523,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -7070,7 +7070,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -7070,7 +7070,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -7617,7 +7617,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -7617,7 +7617,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -8156,7 +8156,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -8156,7 +8156,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
......
...@@ -253,7 +253,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -253,7 +253,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -776,7 +776,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -776,7 +776,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -1320,7 +1320,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -1320,7 +1320,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -1856,7 +1856,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -1856,7 +1856,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -2392,7 +2392,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -2392,7 +2392,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -2941,7 +2941,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -2941,7 +2941,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -3488,7 +3488,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -3488,7 +3488,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -4027,7 +4027,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -4027,7 +4027,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -4545,7 +4545,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -4545,7 +4545,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -5068,7 +5068,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -5068,7 +5068,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -5612,7 +5612,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -5612,7 +5612,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -6148,7 +6148,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -6148,7 +6148,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -6684,7 +6684,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -6684,7 +6684,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -7233,7 +7233,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -7233,7 +7233,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -7780,7 +7780,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -7780,7 +7780,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -8319,7 +8319,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -8319,7 +8319,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
......
...@@ -28,6 +28,7 @@ AUTO_INCREMENT ...@@ -28,6 +28,7 @@ AUTO_INCREMENT
INSERT INTO t1 VALUES (0); INSERT INTO t1 VALUES (0);
INSERT INTO t1 VALUES (5), (16); INSERT INTO t1 VALUES (5), (16);
# ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY
# mysql_errno: 0
INSERT INTO t1 VALUES (17); INSERT INTO t1 VALUES (17);
INSERT INTO t1 VALUES (19), (NULL); INSERT INTO t1 VALUES (19), (NULL);
INSERT INTO t1 VALUES (NULL), (10), (NULL); INSERT INTO t1 VALUES (NULL), (10), (NULL);
...@@ -144,6 +145,7 @@ PARTITIONS 2; ...@@ -144,6 +145,7 @@ PARTITIONS 2;
INSERT INTO t1 VALUES (1, NULL); INSERT INTO t1 VALUES (1, NULL);
INSERT INTO t1 VALUES (1, 1), (99, 99); INSERT INTO t1 VALUES (1, 1), (99, 99);
# ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY
# mysql_errno: 0
INSERT INTO t1 VALUES (1, NULL); INSERT INTO t1 VALUES (1, NULL);
SET @@session.sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET @@session.sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
INSERT INTO t1 VALUES (1, 0); INSERT INTO t1 VALUES (1, 0);
...@@ -176,6 +178,7 @@ INSERT INTO t1 VALUES (2), (4), (NULL); ...@@ -176,6 +178,7 @@ INSERT INTO t1 VALUES (2), (4), (NULL);
INSERT INTO t1 VALUES (0); INSERT INTO t1 VALUES (0);
INSERT INTO t1 VALUES (5), (16); INSERT INTO t1 VALUES (5), (16);
# ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY
# mysql_errno: 0
INSERT INTO t1 VALUES (17), (19), (NULL); INSERT INTO t1 VALUES (17), (19), (NULL);
INSERT INTO t1 VALUES (NULL), (10), (NULL); INSERT INTO t1 VALUES (NULL), (10), (NULL);
INSERT INTO t1 VALUES (NULL), (9); INSERT INTO t1 VALUES (NULL), (9);
...@@ -441,11 +444,13 @@ PARTITIONS 2; ...@@ -441,11 +444,13 @@ PARTITIONS 2;
INSERT INTO t1 VALUES (1, 0); INSERT INTO t1 VALUES (1, 0);
INSERT INTO t1 VALUES (1, 1); INSERT INTO t1 VALUES (1, 1);
# ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY
# mysql_errno: 0
INSERT INTO t1 VALUES (1, NULL); INSERT INTO t1 VALUES (1, NULL);
INSERT INTO t1 VALUES (2, NULL), (3, 11), (3, NULL), (2, 0); INSERT INTO t1 VALUES (2, NULL), (3, 11), (3, NULL), (2, 0);
INSERT INTO t1 VALUES (2, NULL); INSERT INTO t1 VALUES (2, NULL);
INSERT INTO t1 VALUES (2, 2); INSERT INTO t1 VALUES (2, 2);
# ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY
# mysql_errno: 0
INSERT INTO t1 VALUES (2, 22); INSERT INTO t1 VALUES (2, 22);
INSERT INTO t1 VALUES (2, NULL); INSERT INTO t1 VALUES (2, NULL);
SELECT * FROM t1 ORDER BY c1,c2; SELECT * FROM t1 ORDER BY c1,c2;
...@@ -462,12 +467,14 @@ PARTITIONS 2; ...@@ -462,12 +467,14 @@ PARTITIONS 2;
INSERT INTO t1 VALUES (1, 0); INSERT INTO t1 VALUES (1, 0);
INSERT INTO t1 VALUES (1, 1); INSERT INTO t1 VALUES (1, 1);
# ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY
# mysql_errno: 0
INSERT INTO t1 VALUES (1, NULL); INSERT INTO t1 VALUES (1, NULL);
INSERT INTO t1 VALUES (2, NULL); INSERT INTO t1 VALUES (2, NULL);
INSERT INTO t1 VALUES (3, NULL); INSERT INTO t1 VALUES (3, NULL);
INSERT INTO t1 VALUES (3, NULL), (2, 0), (2, NULL); INSERT INTO t1 VALUES (3, NULL), (2, 0), (2, NULL);
INSERT INTO t1 VALUES (2, 2); INSERT INTO t1 VALUES (2, 2);
# ERROR (only OK if Blackhole/NDB) should give ER_DUP_KEY or ER_DUP_ENTRY # ERROR (only OK if Blackhole/NDB) should give ER_DUP_KEY or ER_DUP_ENTRY
# mysql_errno: 0
INSERT INTO t1 VALUES (2, 22), (2, NULL); INSERT INTO t1 VALUES (2, 22), (2, NULL);
SELECT * FROM t1 ORDER BY c1,c2; SELECT * FROM t1 ORDER BY c1,c2;
c1 c2 c1 c2
......
...@@ -649,6 +649,7 @@ INSERT INTO t1 VALUES (3, NULL); ...@@ -649,6 +649,7 @@ INSERT INTO t1 VALUES (3, NULL);
INSERT INTO t1 VALUES (3, NULL), (2, 0), (2, NULL); INSERT INTO t1 VALUES (3, NULL), (2, 0), (2, NULL);
INSERT INTO t1 VALUES (2, 2); INSERT INTO t1 VALUES (2, 2);
# ERROR (only OK if Blackhole/NDB) should give ER_DUP_KEY or ER_DUP_ENTRY # ERROR (only OK if Blackhole/NDB) should give ER_DUP_KEY or ER_DUP_ENTRY
# mysql_errno: 0
INSERT INTO t1 VALUES (2, 22), (2, NULL); INSERT INTO t1 VALUES (2, 22), (2, NULL);
SELECT * FROM t1 ORDER BY c1,c2; SELECT * FROM t1 ORDER BY c1,c2;
c1 c2 c1 c2
......
...@@ -7774,7 +7774,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -7774,7 +7774,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -8293,7 +8293,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -8293,7 +8293,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -8833,7 +8833,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -8833,7 +8833,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -9365,7 +9365,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -9365,7 +9365,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -9897,7 +9897,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -9897,7 +9897,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -10442,7 +10442,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -10442,7 +10442,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -10989,7 +10989,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -10989,7 +10989,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -11524,7 +11524,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -11524,7 +11524,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -12043,7 +12043,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -12043,7 +12043,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -12562,7 +12562,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -12562,7 +12562,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -13102,7 +13102,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -13102,7 +13102,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -13634,7 +13634,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -13634,7 +13634,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -14166,7 +14166,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -14166,7 +14166,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -14709,7 +14709,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -14709,7 +14709,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -15252,7 +15252,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -15252,7 +15252,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
...@@ -15787,7 +15787,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) ...@@ -15787,7 +15787,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR), SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
WHERE f_int1 IN (2,3); WHERE f_int1 IN (2,3);
ERROR 23000: Can't write; duplicate key in table 't1' ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
# check prerequisites-3 success: 1 # check prerequisites-3 success: 1
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE # INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig) INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -329,11 +329,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -329,11 +329,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -559,7 +559,7 @@ TableA CREATE TABLE `TableA` ( ...@@ -559,7 +559,7 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB VALUES LESS THAN (3) , (PARTITION partB VALUES LESS THAN (3) ,
PARTITION parta VALUES LESS THAN (11) ); PARTITION parta VALUES LESS THAN (11) );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO
(PARTITION partD VALUES LESS THAN (8) (PARTITION partD VALUES LESS THAN (8)
COMMENT="Previously partB and partly Partc", COMMENT="Previously partB and partly Partc",
...@@ -793,7 +793,7 @@ PARTITION partF VALUES IN (3,9) ...@@ -793,7 +793,7 @@ PARTITION partF VALUES IN (3,9)
COMMENT = "Mix 2 of old parta and Partc", COMMENT = "Mix 2 of old parta and Partc",
PARTITION parta VALUES IN (4,8) PARTITION parta VALUES IN (4,8)
COMMENT = "Mix 3 of old parta and Partc"); COMMENT = "Mix 3 of old parta and Partc");
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION Partc VALUES IN (1,7) (PARTITION Partc VALUES IN (1,7)
COMMENT = "Mix 1 of old parta and Partc", COMMENT = "Mix 1 of old parta and Partc",
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -329,11 +329,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -329,11 +329,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -559,7 +559,7 @@ TableA CREATE TABLE `TableA` ( ...@@ -559,7 +559,7 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB VALUES LESS THAN (3) , (PARTITION partB VALUES LESS THAN (3) ,
PARTITION parta VALUES LESS THAN (11) ); PARTITION parta VALUES LESS THAN (11) );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO
(PARTITION partD VALUES LESS THAN (8) (PARTITION partD VALUES LESS THAN (8)
COMMENT="Previously partB and partly Partc", COMMENT="Previously partB and partly Partc",
...@@ -793,7 +793,7 @@ PARTITION partF VALUES IN (3,9) ...@@ -793,7 +793,7 @@ PARTITION partF VALUES IN (3,9)
COMMENT = "Mix 2 of old parta and Partc", COMMENT = "Mix 2 of old parta and Partc",
PARTITION parta VALUES IN (4,8) PARTITION parta VALUES IN (4,8)
COMMENT = "Mix 3 of old parta and Partc"); COMMENT = "Mix 3 of old parta and Partc");
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION Partc VALUES IN (1,7) (PARTITION Partc VALUES IN (1,7)
COMMENT = "Mix 1 of old parta and Partc", COMMENT = "Mix 1 of old parta and Partc",
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -329,11 +329,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -329,11 +329,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -559,7 +559,7 @@ TableA CREATE TABLE `TableA` ( ...@@ -559,7 +559,7 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB VALUES LESS THAN (3) , (PARTITION partB VALUES LESS THAN (3) ,
PARTITION parta VALUES LESS THAN (11) ); PARTITION parta VALUES LESS THAN (11) );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO
(PARTITION partD VALUES LESS THAN (8) (PARTITION partD VALUES LESS THAN (8)
COMMENT="Previously partB and partly Partc", COMMENT="Previously partB and partly Partc",
...@@ -793,7 +793,7 @@ PARTITION partF VALUES IN (3,9) ...@@ -793,7 +793,7 @@ PARTITION partF VALUES IN (3,9)
COMMENT = "Mix 2 of old parta and Partc", COMMENT = "Mix 2 of old parta and Partc",
PARTITION parta VALUES IN (4,8) PARTITION parta VALUES IN (4,8)
COMMENT = "Mix 3 of old parta and Partc"); COMMENT = "Mix 3 of old parta and Partc");
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION Partc VALUES IN (1,7) (PARTITION Partc VALUES IN (1,7)
COMMENT = "Mix 1 of old parta and Partc", COMMENT = "Mix 1 of old parta and Partc",
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -329,11 +329,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -329,11 +329,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -559,7 +559,7 @@ TableA CREATE TABLE `TableA` ( ...@@ -559,7 +559,7 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB VALUES LESS THAN (3) , (PARTITION partB VALUES LESS THAN (3) ,
PARTITION parta VALUES LESS THAN (11) ); PARTITION parta VALUES LESS THAN (11) );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO
(PARTITION partD VALUES LESS THAN (8) (PARTITION partD VALUES LESS THAN (8)
COMMENT="Previously partB and partly Partc", COMMENT="Previously partB and partly Partc",
...@@ -793,7 +793,7 @@ PARTITION partF VALUES IN (3,9) ...@@ -793,7 +793,7 @@ PARTITION partF VALUES IN (3,9)
COMMENT = "Mix 2 of old parta and Partc", COMMENT = "Mix 2 of old parta and Partc",
PARTITION parta VALUES IN (4,8) PARTITION parta VALUES IN (4,8)
COMMENT = "Mix 3 of old parta and Partc"); COMMENT = "Mix 3 of old parta and Partc");
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION Partc VALUES IN (1,7) (PARTITION Partc VALUES IN (1,7)
COMMENT = "Mix 1 of old parta and Partc", COMMENT = "Mix 1 of old parta and Partc",
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `tablea` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -320,11 +320,11 @@ TableA CREATE TABLE `tablea` ( ...@@ -320,11 +320,11 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -541,7 +541,7 @@ TableA CREATE TABLE `tablea` ( ...@@ -541,7 +541,7 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB VALUES LESS THAN (3) , (PARTITION partB VALUES LESS THAN (3) ,
PARTITION parta VALUES LESS THAN (11) ); PARTITION parta VALUES LESS THAN (11) );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO
(PARTITION partD VALUES LESS THAN (8) (PARTITION partD VALUES LESS THAN (8)
COMMENT="Previously partB and partly Partc", COMMENT="Previously partB and partly Partc",
...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9) ...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9)
COMMENT = "Mix 2 of old parta and Partc", COMMENT = "Mix 2 of old parta and Partc",
PARTITION parta VALUES IN (4,8) PARTITION parta VALUES IN (4,8)
COMMENT = "Mix 3 of old parta and Partc"); COMMENT = "Mix 3 of old parta and Partc");
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION Partc VALUES IN (1,7) (PARTITION Partc VALUES IN (1,7)
COMMENT = "Mix 1 of old parta and Partc", COMMENT = "Mix 1 of old parta and Partc",
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `tablea` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -320,11 +320,11 @@ TableA CREATE TABLE `tablea` ( ...@@ -320,11 +320,11 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -541,7 +541,7 @@ TableA CREATE TABLE `tablea` ( ...@@ -541,7 +541,7 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB VALUES LESS THAN (3) , (PARTITION partB VALUES LESS THAN (3) ,
PARTITION parta VALUES LESS THAN (11) ); PARTITION parta VALUES LESS THAN (11) );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO
(PARTITION partD VALUES LESS THAN (8) (PARTITION partD VALUES LESS THAN (8)
COMMENT="Previously partB and partly Partc", COMMENT="Previously partB and partly Partc",
...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9) ...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9)
COMMENT = "Mix 2 of old parta and Partc", COMMENT = "Mix 2 of old parta and Partc",
PARTITION parta VALUES IN (4,8) PARTITION parta VALUES IN (4,8)
COMMENT = "Mix 3 of old parta and Partc"); COMMENT = "Mix 3 of old parta and Partc");
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION Partc VALUES IN (1,7) (PARTITION Partc VALUES IN (1,7)
COMMENT = "Mix 1 of old parta and Partc", COMMENT = "Mix 1 of old parta and Partc",
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `tablea` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -320,11 +320,11 @@ TableA CREATE TABLE `tablea` ( ...@@ -320,11 +320,11 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -541,7 +541,7 @@ TableA CREATE TABLE `tablea` ( ...@@ -541,7 +541,7 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB VALUES LESS THAN (3) , (PARTITION partB VALUES LESS THAN (3) ,
PARTITION parta VALUES LESS THAN (11) ); PARTITION parta VALUES LESS THAN (11) );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO
(PARTITION partD VALUES LESS THAN (8) (PARTITION partD VALUES LESS THAN (8)
COMMENT="Previously partB and partly Partc", COMMENT="Previously partB and partly Partc",
...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9) ...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9)
COMMENT = "Mix 2 of old parta and Partc", COMMENT = "Mix 2 of old parta and Partc",
PARTITION parta VALUES IN (4,8) PARTITION parta VALUES IN (4,8)
COMMENT = "Mix 3 of old parta and Partc"); COMMENT = "Mix 3 of old parta and Partc");
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION Partc VALUES IN (1,7) (PARTITION Partc VALUES IN (1,7)
COMMENT = "Mix 1 of old parta and Partc", COMMENT = "Mix 1 of old parta and Partc",
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `tablea` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -320,11 +320,11 @@ TableA CREATE TABLE `tablea` ( ...@@ -320,11 +320,11 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -541,7 +541,7 @@ TableA CREATE TABLE `tablea` ( ...@@ -541,7 +541,7 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB VALUES LESS THAN (3) , (PARTITION partB VALUES LESS THAN (3) ,
PARTITION parta VALUES LESS THAN (11) ); PARTITION parta VALUES LESS THAN (11) );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO
(PARTITION partD VALUES LESS THAN (8) (PARTITION partD VALUES LESS THAN (8)
COMMENT="Previously partB and partly Partc", COMMENT="Previously partB and partly Partc",
...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9) ...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9)
COMMENT = "Mix 2 of old parta and Partc", COMMENT = "Mix 2 of old parta and Partc",
PARTITION parta VALUES IN (4,8) PARTITION parta VALUES IN (4,8)
COMMENT = "Mix 3 of old parta and Partc"); COMMENT = "Mix 3 of old parta and Partc");
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION Partc VALUES IN (1,7) (PARTITION Partc VALUES IN (1,7)
COMMENT = "Mix 1 of old parta and Partc", COMMENT = "Mix 1 of old parta and Partc",
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `tablea` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `tablea` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -320,11 +320,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -320,11 +320,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -541,7 +541,7 @@ TableA CREATE TABLE `TableA` ( ...@@ -541,7 +541,7 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB VALUES LESS THAN (3) , (PARTITION partB VALUES LESS THAN (3) ,
PARTITION parta VALUES LESS THAN (11) ); PARTITION parta VALUES LESS THAN (11) );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO
(PARTITION partD VALUES LESS THAN (8) (PARTITION partD VALUES LESS THAN (8)
COMMENT="Previously partB and partly Partc", COMMENT="Previously partB and partly Partc",
...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9) ...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9)
COMMENT = "Mix 2 of old parta and Partc", COMMENT = "Mix 2 of old parta and Partc",
PARTITION parta VALUES IN (4,8) PARTITION parta VALUES IN (4,8)
COMMENT = "Mix 3 of old parta and Partc"); COMMENT = "Mix 3 of old parta and Partc");
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION Partc VALUES IN (1,7) (PARTITION Partc VALUES IN (1,7)
COMMENT = "Mix 1 of old parta and Partc", COMMENT = "Mix 1 of old parta and Partc",
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -320,11 +320,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -320,11 +320,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -541,7 +541,7 @@ TableA CREATE TABLE `TableA` ( ...@@ -541,7 +541,7 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB VALUES LESS THAN (3) , (PARTITION partB VALUES LESS THAN (3) ,
PARTITION parta VALUES LESS THAN (11) ); PARTITION parta VALUES LESS THAN (11) );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO
(PARTITION partD VALUES LESS THAN (8) (PARTITION partD VALUES LESS THAN (8)
COMMENT="Previously partB and partly Partc", COMMENT="Previously partB and partly Partc",
...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9) ...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9)
COMMENT = "Mix 2 of old parta and Partc", COMMENT = "Mix 2 of old parta and Partc",
PARTITION parta VALUES IN (4,8) PARTITION parta VALUES IN (4,8)
COMMENT = "Mix 3 of old parta and Partc"); COMMENT = "Mix 3 of old parta and Partc");
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION Partc VALUES IN (1,7) (PARTITION Partc VALUES IN (1,7)
COMMENT = "Mix 1 of old parta and Partc", COMMENT = "Mix 1 of old parta and Partc",
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -320,11 +320,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -320,11 +320,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -541,7 +541,7 @@ TableA CREATE TABLE `TableA` ( ...@@ -541,7 +541,7 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB VALUES LESS THAN (3) , (PARTITION partB VALUES LESS THAN (3) ,
PARTITION parta VALUES LESS THAN (11) ); PARTITION parta VALUES LESS THAN (11) );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO
(PARTITION partD VALUES LESS THAN (8) (PARTITION partD VALUES LESS THAN (8)
COMMENT="Previously partB and partly Partc", COMMENT="Previously partB and partly Partc",
...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9) ...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9)
COMMENT = "Mix 2 of old parta and Partc", COMMENT = "Mix 2 of old parta and Partc",
PARTITION parta VALUES IN (4,8) PARTITION parta VALUES IN (4,8)
COMMENT = "Mix 3 of old parta and Partc"); COMMENT = "Mix 3 of old parta and Partc");
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION Partc VALUES IN (1,7) (PARTITION Partc VALUES IN (1,7)
COMMENT = "Mix 1 of old parta and Partc", COMMENT = "Mix 1 of old parta and Partc",
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -320,11 +320,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -320,11 +320,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
...@@ -541,7 +541,7 @@ TableA CREATE TABLE `TableA` ( ...@@ -541,7 +541,7 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB VALUES LESS THAN (3) , (PARTITION partB VALUES LESS THAN (3) ,
PARTITION parta VALUES LESS THAN (11) ); PARTITION parta VALUES LESS THAN (11) );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO ALTER TABLE TableA REORGANIZE PARTITION partB,Partc,PartD,PartE INTO
(PARTITION partD VALUES LESS THAN (8) (PARTITION partD VALUES LESS THAN (8)
COMMENT="Previously partB and partly Partc", COMMENT="Previously partB and partly Partc",
...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9) ...@@ -767,7 +767,7 @@ PARTITION partF VALUES IN (3,9)
COMMENT = "Mix 2 of old parta and Partc", COMMENT = "Mix 2 of old parta and Partc",
PARTITION parta VALUES IN (4,8) PARTITION parta VALUES IN (4,8)
COMMENT = "Mix 3 of old parta and Partc"); COMMENT = "Mix 3 of old parta and Partc");
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION Partc VALUES IN (1,7) (PARTITION Partc VALUES IN (1,7)
COMMENT = "Mix 1 of old parta and Partc", COMMENT = "Mix 1 of old parta and Partc",
......
...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` ( ...@@ -93,11 +93,11 @@ TableA CREATE TABLE `TableA` (
ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB,Partc INTO
(PARTITION PARTA , (PARTITION PARTA ,
PARTITION partc ); PARTITION partc );
ERROR HY000: REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers ERROR HY000: REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers
ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO ALTER TABLE TableA REORGANIZE PARTITION parta,Partc INTO
(PARTITION partB , (PARTITION partB ,
PARTITION parta ); PARTITION parta );
ERROR HY000: When reorganising a set of partitions they must be in consecutive order ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO ALTER TABLE TableA REORGANIZE PARTITION parta,partB INTO
(PARTITION partB COMMENT="Previusly named parta", (PARTITION partB COMMENT="Previusly named parta",
PARTITION parta COMMENT="Previusly named partB"); PARTITION parta COMMENT="Previusly named partB");
......
...@@ -16,6 +16,14 @@ SET @old_general_log= @@global.general_log; ...@@ -16,6 +16,14 @@ SET @old_general_log= @@global.general_log;
drop table if exists t1, t2; drop table if exists t1, t2;
--enable_warnings --enable_warnings
#
# Bug#36001: Partitions: spelling and using some error messages
#
--error ER_FOREIGN_KEY_ON_PARTITIONED
CREATE TABLE t1 (a INT, FOREIGN KEY (a) REFERENCES t0 (a))
ENGINE=MyISAM
PARTITION BY HASH (a);
# #
# Bug#40954: Crash if range search and order by. # Bug#40954: Crash if range search and order by.
# #
......
# #
# Simple test for the erroneos create statements using the # Simple test for the erroneos statements using the
# partition storage engine # partition storage engine
# #
-- source include/have_partition.inc -- source include/have_partition.inc
...@@ -8,6 +8,19 @@ ...@@ -8,6 +8,19 @@
drop table if exists t1; drop table if exists t1;
--enable_warnings --enable_warnings
#
# Bug#38719: Partitioning returns a different error code for a
# duplicate key error
CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a));
-- error ER_DUP_ENTRY
INSERT INTO t1 VALUES (1),(1);
DROP TABLE t1;
CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a))
PARTITION BY KEY (a) PARTITIONS 2;
-- error ER_DUP_ENTRY
INSERT INTO t1 VALUES (1),(1);
DROP TABLE t1;
# #
# Bug#31931: Mix of handlers error message # Bug#31931: Mix of handlers error message
# #
......
...@@ -2932,7 +2932,7 @@ uint handler::get_dup_key(int error) ...@@ -2932,7 +2932,7 @@ uint handler::get_dup_key(int error)
if (error == HA_ERR_FOUND_DUPP_KEY || error == HA_ERR_FOREIGN_DUPLICATE_KEY || if (error == HA_ERR_FOUND_DUPP_KEY || error == HA_ERR_FOREIGN_DUPLICATE_KEY ||
error == HA_ERR_FOUND_DUPP_UNIQUE || error == HA_ERR_NULL_IN_SPATIAL || error == HA_ERR_FOUND_DUPP_UNIQUE || error == HA_ERR_NULL_IN_SPATIAL ||
error == HA_ERR_DROP_INDEX_FK) error == HA_ERR_DROP_INDEX_FK)
info(HA_STATUS_ERRKEY | HA_STATUS_NO_LOCK); table->file->info(HA_STATUS_ERRKEY | HA_STATUS_NO_LOCK);
DBUG_RETURN(table->file->errkey); DBUG_RETURN(table->file->errkey);
} }
......
...@@ -5775,9 +5775,9 @@ ER_PARTITION_MGMT_ON_NONPARTITIONED ...@@ -5775,9 +5775,9 @@ ER_PARTITION_MGMT_ON_NONPARTITIONED
ger "Partitionsverwaltung einer nicht partitionierten Tabelle ist nicht mglich" ger "Partitionsverwaltung einer nicht partitionierten Tabelle ist nicht mglich"
swe "Partitioneringskommando p en opartitionerad tabell r inte mjligt" swe "Partitioneringskommando p en opartitionerad tabell r inte mjligt"
ER_FOREIGN_KEY_ON_PARTITIONED ER_FOREIGN_KEY_ON_PARTITIONED
eng "Foreign key condition is not yet supported in conjunction with partitioning" eng "Foreign key clause is not yet supported in conjunction with partitioning"
ger "Fremdschlssel-Beschrnkungen sind im Zusammenhang mit Partitionierung nicht zulssig" ger "Fremdschlssel-Beschrnkungen sind im Zusammenhang mit Partitionierung nicht zulssig"
swe "Foreign key villkor r inte nnu implementerad i kombination med partitionering" swe "Foreign key klausul r inte nnu implementerad i kombination med partitionering"
ER_DROP_PARTITION_NON_EXISTENT ER_DROP_PARTITION_NON_EXISTENT
eng "Error in list of partitions to %-.64s" eng "Error in list of partitions to %-.64s"
ger "Fehler in der Partitionsliste bei %-.64s" ger "Fehler in der Partitionsliste bei %-.64s"
...@@ -5791,13 +5791,13 @@ ER_COALESCE_ONLY_ON_HASH_PARTITION ...@@ -5791,13 +5791,13 @@ ER_COALESCE_ONLY_ON_HASH_PARTITION
ger "COALESCE PARTITION kann nur auf HASH- oder KEY-Partitionen benutzt werden" ger "COALESCE PARTITION kann nur auf HASH- oder KEY-Partitionen benutzt werden"
swe "COALESCE PARTITION kan bara anvndas p HASH/KEY partitioner" swe "COALESCE PARTITION kan bara anvndas p HASH/KEY partitioner"
ER_REORG_HASH_ONLY_ON_SAME_NO ER_REORG_HASH_ONLY_ON_SAME_NO
eng "REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers" eng "REORGANIZE PARTITION can only be used to reorganize partitions not to change their numbers"
ger "REORGANIZE PARTITION kann nur zur Reorganisation von Partitionen verwendet werden, nicht, um ihre Nummern zu ndern" ger "REORGANIZE PARTITION kann nur zur Reorganisation von Partitionen verwendet werden, nicht, um ihre Nummern zu ndern"
swe "REORGANISE PARTITION kan bara anvndas fr att omorganisera partitioner, inte fr att ndra deras antal" swe "REORGANIZE PARTITION kan bara anvndas fr att omorganisera partitioner, inte fr att ndra deras antal"
ER_REORG_NO_PARAM_ERROR ER_REORG_NO_PARAM_ERROR
eng "REORGANISE PARTITION without parameters can only be used on auto-partitioned tables using HASH PARTITIONs" eng "REORGANIZE PARTITION without parameters can only be used on auto-partitioned tables using HASH PARTITIONs"
ger "REORGANIZE PARTITION ohne Parameter kann nur fr auto-partitionierte Tabellen verwendet werden, die HASH-Partitionierung benutzen" ger "REORGANIZE PARTITION ohne Parameter kann nur fr auto-partitionierte Tabellen verwendet werden, die HASH-Partitionierung benutzen"
swe "REORGANISE PARTITION utan parametrar kan bara anvndas p auto-partitionerade tabeller som anvnder HASH partitionering" swe "REORGANIZE PARTITION utan parametrar kan bara anvndas p auto-partitionerade tabeller som anvnder HASH partitionering"
ER_ONLY_ON_RANGE_LIST_PARTITION ER_ONLY_ON_RANGE_LIST_PARTITION
eng "%-.64s PARTITION can only be used on RANGE/LIST partitions" eng "%-.64s PARTITION can only be used on RANGE/LIST partitions"
ger "%-.64s PARTITION kann nur fr RANGE- oder LIST-Partitionen verwendet werden" ger "%-.64s PARTITION kann nur fr RANGE- oder LIST-Partitionen verwendet werden"
...@@ -5815,7 +5815,7 @@ ER_COALESCE_PARTITION_NO_PARTITION ...@@ -5815,7 +5815,7 @@ ER_COALESCE_PARTITION_NO_PARTITION
ger "Zumindest eine Partition muss mit COALESCE PARTITION zusammengefgt werden" ger "Zumindest eine Partition muss mit COALESCE PARTITION zusammengefgt werden"
swe "tminstone en partition mste sls ihop vid COALESCE PARTITION" swe "tminstone en partition mste sls ihop vid COALESCE PARTITION"
ER_REORG_PARTITION_NOT_EXIST ER_REORG_PARTITION_NOT_EXIST
eng "More partitions to reorganise than there are partitions" eng "More partitions to reorganize than there are partitions"
ger "Es wurde versucht, mehr Partitionen als vorhanden zu reorganisieren" ger "Es wurde versucht, mehr Partitionen als vorhanden zu reorganisieren"
swe "Fler partitioner att reorganisera n det finns partitioner" swe "Fler partitioner att reorganisera n det finns partitioner"
ER_SAME_NAME_PARTITION ER_SAME_NAME_PARTITION
...@@ -5827,7 +5827,7 @@ ER_NO_BINLOG_ERROR ...@@ -5827,7 +5827,7 @@ ER_NO_BINLOG_ERROR
ger "Es es nicht erlaubt, bei diesem Befehl binlog abzuschalten" ger "Es es nicht erlaubt, bei diesem Befehl binlog abzuschalten"
swe "Det r inte tilltet att stnga av binlog p detta kommando" swe "Det r inte tilltet att stnga av binlog p detta kommando"
ER_CONSECUTIVE_REORG_PARTITIONS ER_CONSECUTIVE_REORG_PARTITIONS
eng "When reorganising a set of partitions they must be in consecutive order" eng "When reorganizing a set of partitions they must be in consecutive order"
ger "Bei der Reorganisation eines Satzes von Partitionen mssen diese in geordneter Reihenfolge vorliegen" ger "Bei der Reorganisation eines Satzes von Partitionen mssen diese in geordneter Reihenfolge vorliegen"
swe "Nr ett antal partitioner omorganiseras mste de vara i konsekutiv ordning" swe "Nr ett antal partitioner omorganiseras mste de vara i konsekutiv ordning"
ER_REORG_OUTSIDE_RANGE ER_REORG_OUTSIDE_RANGE
......
...@@ -3321,7 +3321,7 @@ bool mysql_create_table_no_lock(THD *thd, ...@@ -3321,7 +3321,7 @@ bool mysql_create_table_no_lock(THD *thd,
if (key->type == Key::FOREIGN_KEY && if (key->type == Key::FOREIGN_KEY &&
!part_info->is_auto_partitioned) !part_info->is_auto_partitioned)
{ {
my_error(ER_CANNOT_ADD_FOREIGN, MYF(0)); my_error(ER_FOREIGN_KEY_ON_PARTITIONED, MYF(0));
goto err; goto err;
} }
} }
......
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