1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-7280 DATABASE: CREATE OR REPLACE

This commit is contained in:
Alexander Barkov
2014-12-10 08:13:08 +04:00
parent c6d3f8058d
commit dd270e43bf
10 changed files with 287 additions and 48 deletions

View File

@ -4301,7 +4301,7 @@ end_with_restore_list:
if (check_access(thd, CREATE_ACL, lex->name.str, NULL, NULL, 1, 0))
break;
WSREP_TO_ISOLATION_BEGIN(lex->name.str, NULL, NULL)
res= mysql_create_db(thd, lex->name.str, lex->create_info, &create_info, 0);
res= mysql_create_db(thd, lex->name.str, lex->create_info, &create_info);
break;
}
case SQLCOM_DROP_DB:
@ -4333,7 +4333,7 @@ end_with_restore_list:
if (check_access(thd, DROP_ACL, lex->name.str, NULL, NULL, 1, 0))
break;
WSREP_TO_ISOLATION_BEGIN(lex->name.str, NULL, NULL)
res= mysql_rm_db(thd, lex->name.str, lex->if_exists(), 0);
res= mysql_rm_db(thd, lex->name.str, lex->if_exists());
break;
}
case SQLCOM_ALTER_DB_UPGRADE: