mirror of
https://github.com/MariaDB/server.git
synced 2026-04-27 02:35:29 +02:00
renamedb.test, renamedb.result:
new file Many files: WL#757 RENAME DATABASE sql/mysql_priv.h: WL#757 RENAME DATABASE sql/mysqld.cc: WL#757 RENAME DATABASE sql/sql_db.cc: WL#757 RENAME DATABASE sql/sql_lex.h: WL#757 RENAME DATABASE sql/sql_parse.cc: WL#757 RENAME DATABASE sql/sql_rename.cc: WL#757 RENAME DATABASE sql/sql_table.cc: WL#757 RENAME DATABASE sql/sql_yacc.yy: WL#757 RENAME DATABASE
This commit is contained in:
parent
3a2b70f841
commit
bc5dc9e085
10 changed files with 605 additions and 24 deletions
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue