1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

Bug#21862 Misleading error message 1490: "A PRIMARY KEY need to include all fields..."

fixed error message
This commit is contained in:
gluh@mysql.com/gluh.(none)
2006-08-31 13:43:26 +05:00
parent f01c7cd66f
commit acaef19c61
3 changed files with 3 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ drop table t1;
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);
ERROR HY000: A PRIMARY KEY need to include all fields in the partition function ERROR HY000: A PRIMARY KEY must include all columns in the table's partitioning function
CREATE TABLE t1 (a int, b int, c int, PRIMARY KEY(a,b)) CREATE TABLE t1 (a int, b int, c int, PRIMARY KEY(a,b))
ENGINE = NDB ENGINE = NDB
PARTITION BY KEY (a); PARTITION BY KEY (a);

View File

@@ -731,7 +731,7 @@ ERROR HY000: Cannot create temporary table with partitions
create table t1 (a int, b int) partition by list (a) create table t1 (a int, b int) partition by list (a)
(partition p1 values in (1), partition p2 values in (2)); (partition p1 values in (1), partition p2 values in (2));
alter table t1 add primary key (b); alter table t1 add primary key (b);
ERROR HY000: A PRIMARY KEY need to include all fields in the partition function ERROR HY000: A PRIMARY KEY must include all columns in the table's partitioning function
show create table t1; show create table t1;
Table Create Table Table Create Table
t1 CREATE TABLE `t1` ( t1 CREATE TABLE `t1` (

View File

@@ -5702,9 +5702,7 @@ ER_BLOB_FIELD_IN_PART_FUNC_ERROR
ger "In der Partitionierungsfunktion sind BLOB-Spalten nicht erlaubt" ger "In der Partitionierungsfunktion sind BLOB-Spalten nicht erlaubt"
swe "Ett BLOB-f<>lt <20>r inte till<6C>tet i partitioneringsfunktioner" swe "Ett BLOB-f<>lt <20>r inte till<6C>tet i partitioneringsfunktioner"
ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF
eng "A %-.64s need to include all fields in the partition function" eng "A %-.64s must include all columns in the table's partitioning function"
ger "Ein %-.64s muss alle Spalten der Partitionierungsfunktion umfassen"
swe "En %-.64s beh<65>ver inkludera alla f<>lt i partitioneringsfunktionen f<>r denna lagringsmotor"
ER_NO_PARTS_ERROR ER_NO_PARTS_ERROR
eng "Number of %-.64s = 0 is not an allowed value" eng "Number of %-.64s = 0 is not an allowed value"
ger "Eine Anzahl von %-.64s = 0 ist kein erlaubter Wert" ger "Eine Anzahl von %-.64s = 0 ist kein erlaubter Wert"