mirror of
https://github.com/MariaDB/server.git
synced 2025-09-11 05:52:26 +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:
@@ -513,4 +513,17 @@ create table test.t1 like x;
|
||||
drop table if exists test.t1;
|
||||
--enable_warnings
|
||||
|
||||
#
|
||||
# Bug #6008 MySQL does not create warnings when
|
||||
# creating database and using IF NOT EXISTS
|
||||
#
|
||||
create database mysqltest;
|
||||
create database if not exists mysqltest character set latin2;
|
||||
show create database mysqltest;
|
||||
drop database mysqltest;
|
||||
use test;
|
||||
create table t1 (a int);
|
||||
create table if not exists t1 (a int);
|
||||
drop table t1;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
Reference in New Issue
Block a user