1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +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:
gluh@eagle.intranet.mysql.r18.ru
2005-09-12 17:09:19 +05:00
parent 2a07350854
commit d9bd3c11e4
6 changed files with 67 additions and 14 deletions

View File

@@ -23,6 +23,8 @@ a b
6 g
create TEMPORARY TABLE t2 engine=heap select * from t1;
create TEMPORARY TABLE IF NOT EXISTS t2 (a int) engine=heap;
Warnings:
Note 1050 Table 't2' already exists
CREATE TEMPORARY TABLE t1 (a int not null, b char (10) not null);
ERROR 42S01: Table 't1' already exists
ALTER TABLE t1 RENAME t2;