1
0
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:
Alexey Botchkov
2019-07-30 21:57:48 +04:00
parent 4b5a14d0fe
commit c6efbc543d
28 changed files with 115 additions and 19 deletions

View File

@@ -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` (