mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch '10.2' into 10.3
This commit is contained in:
@ -449,9 +449,8 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
|
||||
if (thd->open_temporary_tables(lex->query_tables) ||
|
||||
open_and_lock_tables(thd, lex->query_tables, TRUE, 0))
|
||||
{
|
||||
view= lex->unlink_first_table(&link_to_local);
|
||||
res= TRUE;
|
||||
goto err;
|
||||
goto err_no_relink;
|
||||
}
|
||||
|
||||
view= lex->unlink_first_table(&link_to_local);
|
||||
@ -714,9 +713,11 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
|
||||
|
||||
WSREP_ERROR_LABEL:
|
||||
res= TRUE;
|
||||
goto err_no_relink;
|
||||
|
||||
err:
|
||||
lex->link_first_table_back(view, link_to_local);
|
||||
err_no_relink:
|
||||
unit->cleanup();
|
||||
DBUG_RETURN(res || thd->is_error());
|
||||
}
|
||||
|
Reference in New Issue
Block a user