Merge fix

parent db8e0b73
...@@ -23,7 +23,7 @@ select * from t1; ...@@ -23,7 +23,7 @@ select * from t1;
drop table t1; drop table t1;
# only support for partition key on primary key # only support for partition key on primary key
--error 1460 --error ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF
CREATE TABLE t1 (a int, b int, c int, d int, PRIMARY KEY(a,b)) CREATE TABLE t1 (a int, b int, c int, d int, PRIMARY KEY(a,b))
ENGINE = NDB ENGINE = NDB
PARTITION BY KEY (c); PARTITION BY KEY (c);
......
...@@ -17,7 +17,7 @@ partitions 3 ...@@ -17,7 +17,7 @@ partitions 3
# #
# Partition by key list, number of partitions defined, no partition defined # Partition by key list, number of partitions defined, no partition defined
# #
--error 1448 --error ER_PARTITIONS_MUST_BE_DEFINED_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -29,7 +29,7 @@ partitions 2; ...@@ -29,7 +29,7 @@ partitions 2;
# #
# Partition by key list, wrong result type # Partition by key list, wrong result type
# #
--error 1447 --error ER_PARTITION_FUNC_NOT_ALLOWED_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -74,7 +74,7 @@ partitions 3 ...@@ -74,7 +74,7 @@ partitions 3
# #
# Partition by key, invalid field in field list # Partition by key, invalid field in field list
# #
--error 1444 --error ER_FIELD_NOT_FOUND_PART_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -103,7 +103,7 @@ partitions 3 ...@@ -103,7 +103,7 @@ partitions 3
# #
# Partition by hash, invalid result type # Partition by hash, invalid result type
# #
--error 1447 --error ER_PARTITION_FUNC_NOT_ALLOWED_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -170,7 +170,7 @@ partitions 2 ...@@ -170,7 +170,7 @@ partitions 2
# #
# Partition by hash, values less than error # Partition by hash, values less than error
# #
--error 1437 --error ER_PARTITION_WRONG_VALUES_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -184,7 +184,7 @@ partitions 2 ...@@ -184,7 +184,7 @@ partitions 2
# #
# Partition by hash, values in error # Partition by hash, values in error
# #
--error 1437 --error ER_PARTITION_WRONG_VALUES_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -198,7 +198,7 @@ partitions 2 ...@@ -198,7 +198,7 @@ partitions 2
# #
# Partition by hash, values in error # Partition by hash, values in error
# #
--error 1437 --error ER_PARTITION_WRONG_VALUES_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -212,7 +212,7 @@ partitions 2 ...@@ -212,7 +212,7 @@ partitions 2
# #
# Subpartition by key, no partitions defined, single field # Subpartition by key, no partitions defined, single field
# #
--error 1456 --error ER_SUBPARTITION_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -224,7 +224,7 @@ subpartition by key (b); ...@@ -224,7 +224,7 @@ subpartition by key (b);
# #
# Subpartition by key, no partitions defined, list of fields # Subpartition by key, no partitions defined, list of fields
# #
--error 1456 --error ER_SUBPARTITION_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -236,7 +236,7 @@ subpartition by key (a, b); ...@@ -236,7 +236,7 @@ subpartition by key (a, b);
# #
# Subpartition by hash, no partitions defined # Subpartition by hash, no partitions defined
# #
--error 1456 --error ER_SUBPARTITION_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -248,7 +248,7 @@ subpartition by hash (a+b); ...@@ -248,7 +248,7 @@ subpartition by hash (a+b);
# #
# Subpartition by key, no partitions defined, single field # Subpartition by key, no partitions defined, single field
# #
--error 1456 --error ER_SUBPARTITION_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -260,7 +260,7 @@ subpartition by key (b); ...@@ -260,7 +260,7 @@ subpartition by key (b);
# #
# Subpartition by key, no partitions defined, list of fields # Subpartition by key, no partitions defined, list of fields
# #
--error 1456 --error ER_SUBPARTITION_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -272,7 +272,7 @@ subpartition by key (a, b); ...@@ -272,7 +272,7 @@ subpartition by key (a, b);
# #
# Subpartition by hash, no partitions defined # Subpartition by hash, no partitions defined
# #
--error 1456 --error ER_SUBPARTITION_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -296,7 +296,7 @@ subpartition by hash (rand(a+b)); ...@@ -296,7 +296,7 @@ subpartition by hash (rand(a+b));
# #
# Subpartition by hash, wrong subpartition function # Subpartition by hash, wrong subpartition function
# #
--error 1456 --error ER_SUBPARTITION_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -324,7 +324,7 @@ subpartition by key (a+b) ...@@ -324,7 +324,7 @@ subpartition by key (a+b)
# #
# Subpartition by hash, no partitions defined, wrong subpartition function # Subpartition by hash, no partitions defined, wrong subpartition function
# #
--error 1444 --error ER_FIELD_NOT_FOUND_PART_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -338,7 +338,7 @@ subpartition by key (a,d) ...@@ -338,7 +338,7 @@ subpartition by key (a,d)
# #
# Subpartition by hash, no partitions defined, wrong subpartition function # Subpartition by hash, no partitions defined, wrong subpartition function
# #
--error 1456 --error ER_SUBPARTITION_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -364,7 +364,7 @@ subpartition by hash (a+d) ...@@ -364,7 +364,7 @@ subpartition by hash (a+d)
# #
# Partition by range, no partition => error # Partition by range, no partition => error
# #
--error 1448 --error ER_PARTITIONS_MUST_BE_DEFINED_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -403,7 +403,7 @@ partitions 2 ...@@ -403,7 +403,7 @@ partitions 2
# #
# Partition by range, constant partition function not allowed # Partition by range, constant partition function not allowed
# #
--error 1442 --error ER_CONST_EXPR_IN_PARTITION_FUNC_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -417,7 +417,7 @@ partitions 2 ...@@ -417,7 +417,7 @@ partitions 2
# #
# Partition by range, no values less than definition # Partition by range, no values less than definition
# #
--error 1436 --error ER_PARTITION_REQUIRES_VALUES_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -431,7 +431,7 @@ partitions 2 ...@@ -431,7 +431,7 @@ partitions 2
# #
# Partition by range, no values in definition allowed # Partition by range, no values in definition allowed
# #
--error 1437 --error ER_PARTITION_WRONG_VALUES_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -445,7 +445,7 @@ partitions 2 ...@@ -445,7 +445,7 @@ partitions 2
# #
# Partition by range, values in error # Partition by range, values in error
# #
--error 1437 --error ER_PARTITION_WRONG_VALUES_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -501,7 +501,7 @@ partitions 2 ...@@ -501,7 +501,7 @@ partitions 2
# #
# Partition by range, not increasing ranges # Partition by range, not increasing ranges
# #
--error 1449 --error ER_RANGE_NOT_INCREASING_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -515,7 +515,7 @@ partitions 2 ...@@ -515,7 +515,7 @@ partitions 2
# #
# Partition by range, wrong result type of partition function # Partition by range, wrong result type of partition function
# #
--error 1447 --error ER_PARTITION_FUNC_NOT_ALLOWED_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -607,7 +607,7 @@ subpartition by list (a+b) ...@@ -607,7 +607,7 @@ subpartition by list (a+b)
# #
# Partition by list, no partition => error # Partition by list, no partition => error
# #
--error 1448 --error ER_PARTITIONS_MUST_BE_DEFINED_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -618,7 +618,7 @@ partition by list (a); ...@@ -618,7 +618,7 @@ partition by list (a);
# #
# Partition by list, constant partition function not allowed # Partition by list, constant partition function not allowed
# #
--error 1442 --error ER_CONST_EXPR_IN_PARTITION_FUNC_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -646,7 +646,7 @@ partitions 2 ...@@ -646,7 +646,7 @@ partitions 2
# #
# Partition by list, no values in definition # Partition by list, no values in definition
# #
--error 1436 --error ER_PARTITION_REQUIRES_VALUES_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -660,7 +660,7 @@ partitions 2 ...@@ -660,7 +660,7 @@ partitions 2
# #
# Partition by list, values less than error # Partition by list, values less than error
# #
--error 1437 --error ER_PARTITION_WRONG_VALUES_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -674,7 +674,7 @@ partitions 2 ...@@ -674,7 +674,7 @@ partitions 2
# #
# Partition by list, no values in definition # Partition by list, no values in definition
# #
--error 1436 --error ER_PARTITION_REQUIRES_VALUES_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
...@@ -688,7 +688,7 @@ partitions 2 ...@@ -688,7 +688,7 @@ partitions 2
# #
# Partition by list, duplicate values # Partition by list, duplicate values
# #
--error 1451 --error ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR
CREATE TABLE t1 ( CREATE TABLE t1 (
a int not null, a int not null,
b int not null, b int not null,
......
...@@ -5384,6 +5384,10 @@ ER_CANT_CREATE_FEDERATED_TABLE ...@@ -5384,6 +5384,10 @@ ER_CANT_CREATE_FEDERATED_TABLE
eng "Can't create federated table. Foreign data src error : '%-.64s'" eng "Can't create federated table. Foreign data src error : '%-.64s'"
ER_TRG_IN_WRONG_SCHEMA ER_TRG_IN_WRONG_SCHEMA
eng "Trigger in wrong schema" eng "Trigger in wrong schema"
ER_STACK_OVERRUN_NEED_MORE
eng "Thread stack overrun: %ld bytes used of a %ld byte stack, and %ld bytes needed. Use 'mysqld -O thread_stack=#' to specify a bigger stack."
ER_TOO_LONG_BODY 42000 S1009
eng "Routine body for '%-.100s' is too long"
ER_PARTITION_REQUIRES_VALUES_ERROR ER_PARTITION_REQUIRES_VALUES_ERROR
eng "%s PARTITIONING requires definition of VALUES %s for each partition" eng "%s PARTITIONING requires definition of VALUES %s for each partition"
swe "%s PARTITIONering krver definition av VALUES %s fr varje partition" swe "%s PARTITIONering krver definition av VALUES %s fr varje partition"
...@@ -5462,11 +5466,3 @@ ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF ...@@ -5462,11 +5466,3 @@ ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF
ER_NO_PARTS_ERROR ER_NO_PARTS_ERROR
eng "Number of %s = 0 is not an allowed value" eng "Number of %s = 0 is not an allowed value"
swe "Antal %s = 0 r inte ett tillten vrde" swe "Antal %s = 0 r inte ett tillten vrde"
ER_CANT_CREATE_FEDERATED_TABLE
eng "Can't create federated table. Foreign data src error : '%-.64s'"
ER_TRG_IN_WRONG_SCHEMA
eng "Trigger in wrong schema"
ER_STACK_OVERRUN_NEED_MORE
eng "Thread stack overrun: %ld bytes used of a %ld byte stack, and %ld bytes needed. Use 'mysqld -O thread_stack=#' to specify a bigger stack."
ER_TOO_LONG_BODY 42000 S1009
eng "Routine body for '%-.100s' is too long"
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