mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix for bug #6008: MySQL does not create warnings when creating database and using IF NOT EXISTS
produce warning for 'create database if not exists' if database exists do not update database options in this case produce warning for 'create table if not exists' if table exists
This commit is contained in:
@ -63,9 +63,11 @@ show count(*) warnings;
|
||||
1
|
||||
create table t1(id int);
|
||||
create table if not exists t1(id int);
|
||||
Warnings:
|
||||
Note 1050 Table 't1' already exists
|
||||
select @@warning_count;
|
||||
@@warning_count
|
||||
0
|
||||
1
|
||||
drop table t1;
|
||||
create table t1(a tinyint, b int not null, c date, d char(5));
|
||||
load data infile '../../std_data/warnings_loaddata.dat' into table t1 fields terminated by ',';
|
||||
|
Reference in New Issue
Block a user