mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
Merge msvensson@bk-internal.mysql.com:/home/bk/mysql-5.0
into devsrv-b.mysql.com:/space/magnus/my50-bug15302
This commit is contained in:
commit
e899ab07c2
1 changed files with 9 additions and 3 deletions
|
@ -395,6 +395,12 @@ err1:
|
|||
silent Used by replication when internally creating a database.
|
||||
In this case the entry should not be logged.
|
||||
|
||||
SIDE-EFFECTS
|
||||
1. Report back to client that command succeeded (send_ok)
|
||||
2. Report errors to client
|
||||
3. Log event to binary log
|
||||
(The 'silent' flags turns off 1 and 3.)
|
||||
|
||||
RETURN VALUES
|
||||
FALSE ok
|
||||
TRUE Error
|
||||
|
@ -435,17 +441,17 @@ bool mysql_create_db(THD *thd, char *db, HA_CREATE_INFO *create_info,
|
|||
|
||||
if (my_stat(path,&stat_info,MYF(0)))
|
||||
{
|
||||
if (!(create_options & HA_LEX_CREATE_IF_NOT_EXISTS))
|
||||
if (!(create_options & HA_LEX_CREATE_IF_NOT_EXISTS))
|
||||
{
|
||||
my_error(ER_DB_CREATE_EXISTS, MYF(0), db);
|
||||
error= -1;
|
||||
goto exit;
|
||||
}
|
||||
push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_NOTE,
|
||||
ER_DB_CREATE_EXISTS, ER(ER_DB_CREATE_EXISTS), db);
|
||||
error= 0;
|
||||
ER_DB_CREATE_EXISTS, ER(ER_DB_CREATE_EXISTS), db);
|
||||
if (!silent)
|
||||
send_ok(thd);
|
||||
error= 0;
|
||||
goto exit;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue