mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug#21862 Misleading error message 1490: "A PRIMARY KEY need to include all fields..."
fixed error message
This commit is contained in:
@ -731,7 +731,7 @@ ERROR HY000: Cannot create temporary table with partitions
|
||||
create table t1 (a int, b int) partition by list (a)
|
||||
(partition p1 values in (1), partition p2 values in (2));
|
||||
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;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
|
Reference in New Issue
Block a user