mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.0/bug18676
into dev3-221.dev.cn.tlan:/home/ngb/mysql/mysql-5.1/bug18676 mysql-test/r/ndb_autodiscover.result: Auto merged sql/handler.cc: Auto merged storage/ndb/src/common/transporter/TCP_Transporter.cpp: Auto merged storage/ndb/src/mgmclient/CommandInterpreter.cpp: Auto merged sql/ha_ndbcluster.cc: merge 5.0-ndb-bj for bug#18676 into 5.1-ndb-bj sql/sql_table.cc: merge 5.0-ndb-bj for bug#18676 into 5.1-ndb-bj
This commit is contained in:
@@ -3439,6 +3439,7 @@ bool mysql_create_table_internal(THD *thd,
|
||||
error= 0;
|
||||
goto err;
|
||||
}
|
||||
DBUG_PRINT("info",("1"));
|
||||
my_error(ER_TABLE_EXISTS_ERROR, MYF(0), alias);
|
||||
goto err;
|
||||
}
|
||||
@@ -3450,6 +3451,7 @@ bool mysql_create_table_internal(THD *thd,
|
||||
{
|
||||
if (create_info->options & HA_LEX_CREATE_IF_NOT_EXISTS)
|
||||
goto warn;
|
||||
DBUG_PRINT("info",("2"));
|
||||
my_error(ER_TABLE_EXISTS_ERROR,MYF(0),table_name);
|
||||
goto unlock_and_end;
|
||||
}
|
||||
@@ -3481,6 +3483,7 @@ bool mysql_create_table_internal(THD *thd,
|
||||
{
|
||||
bool create_if_not_exists =
|
||||
create_info->options & HA_LEX_CREATE_IF_NOT_EXISTS;
|
||||
|
||||
if (ha_table_exists_in_engine(thd, db, table_name))
|
||||
{
|
||||
DBUG_PRINT("info", ("Table with same name already existed in handler"));
|
||||
|
||||
Reference in New Issue
Block a user