1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

fix ALTER TABLE .. DROP CONSTRAINT IF NOT EXISTS

This commit is contained in:
Sergei Golubchik
2016-07-02 12:22:58 +02:00
parent 5c764a0eb8
commit b258f91103
3 changed files with 5 additions and 1 deletions

View File

@ -84,6 +84,9 @@ t2 CREATE TABLE `t2` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1
alter table t2 drop constraint c;
ERROR 42000: Can't DROP CONSTRAINT `c`; check that it exists
alter table t2 drop constraint if exists c;
Warnings:
Note 1091 Can't DROP CONSTRAINT `c`; check that it exists
alter table t2 drop constraint min;
show create table t2;
Table Create Table