diff options
author | bar@mysql.com <> | 2006-02-13 11:49:28 +0400 |
---|---|---|
committer | bar@mysql.com <> | 2006-02-13 11:49:28 +0400 |
commit | 611cbc2f4d257c6e1d7a8ad4c754e1e31793af90 (patch) | |
tree | 7556874a6f6490a8cd49f55fe0c7ed08d7f14167 /sql/sql_rename.cc | |
parent | 86a15e5e86f5365b3e217ad0bdbaa56685d6a6d2 (diff) | |
download | mariadb-git-611cbc2f4d257c6e1d7a8ad4c754e1e31793af90.tar.gz |
renamedb.test, renamedb.result:
new file
Many files:
WL#757 RENAME DATABASE
Diffstat (limited to 'sql/sql_rename.cc')
-rw-r--r-- | sql/sql_rename.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_rename.cc b/sql/sql_rename.cc index 150c1dba1c9..5f20442cc84 100644 --- a/sql/sql_rename.cc +++ b/sql/sql_rename.cc @@ -31,7 +31,7 @@ static TABLE_LIST *reverse_table_list(TABLE_LIST *table_list); second entry is the new name. */ -bool mysql_rename_tables(THD *thd, TABLE_LIST *table_list) +bool mysql_rename_tables(THD *thd, TABLE_LIST *table_list, bool silent) { bool error= 1; TABLE_LIST *ren_table= 0; @@ -79,7 +79,7 @@ bool mysql_rename_tables(THD *thd, TABLE_LIST *table_list) } /* Lets hope this doesn't fail as the result will be messy */ - if (!error) + if (!silent && !error) { if (mysql_bin_log.is_open()) { |