1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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

@ -47,6 +47,8 @@ drop database if exists db1;
create database db1;
use db1;
create table t1 (i int auto_increment, f1 varchar(16), primary key pk (i,f1)) engine=MyISAM;
Warnings:
Warning 1280 Name 'pk' ignored for PRIMARY key.
insert into t1 (f1) values ('one'),('two');
connection slave;
select * from db1.t1;