mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-17544 No warning when trying to name a primary key constraint.
Warning added.
This commit is contained in:
@@ -28,6 +28,8 @@ bug51378 CREATE TABLE `bug51378` (
|
||||
UNIQUE KEY `idx2` (`col1`,`col2`(31))
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
alter table bug51378 add primary key idx3(col1, col2(31));
|
||||
Warnings:
|
||||
Warning 1280 Name 'idx3' ignored for PRIMARY key.
|
||||
SHOW CREATE TABLE bug51378;
|
||||
Table Create Table
|
||||
bug51378 CREATE TABLE `bug51378` (
|
||||
|
Reference in New Issue
Block a user