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

MDEV-7285 SERVER: CREATE OR REPLACE and CREATE IF NOT EXISTS

This commit is contained in:
Alexander Barkov
2014-12-10 13:41:14 +04:00
parent 14cfb0acb8
commit 822eb6ca3d
7 changed files with 151 additions and 25 deletions

View File

@ -5446,21 +5446,13 @@ create_sp_error:
}
case SQLCOM_CREATE_SERVER:
{
int error;
LEX *lex= thd->lex;
DBUG_PRINT("info", ("case SQLCOM_CREATE_SERVER"));
if (check_global_access(thd, SUPER_ACL))
break;
if ((error= create_server(thd, &lex->server_options)))
{
DBUG_PRINT("info", ("problem creating server <%s>",
lex->server_options.server_name.str));
my_error(error, MYF(0), lex->server_options.server_name.str);
break;
}
my_ok(thd, 1);
res= create_server(thd, &lex->server_options);
break;
}
case SQLCOM_ALTER_SERVER: