mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch '10.1' into 10.2
This commit is contained in:
@ -443,7 +443,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
|
||||
*/
|
||||
if (lex->current_select->lock_type != TL_READ_DEFAULT)
|
||||
{
|
||||
lex->current_select->set_lock_for_tables(TL_READ_DEFAULT);
|
||||
lex->current_select->set_lock_for_tables(TL_READ_DEFAULT, false);
|
||||
view->mdl_request.set_type(MDL_EXCLUSIVE);
|
||||
}
|
||||
|
||||
@ -1540,6 +1540,7 @@ bool mysql_make_view(THD *thd, TABLE_SHARE *share, TABLE_LIST *table,
|
||||
{
|
||||
tbl->lock_type= table->lock_type;
|
||||
tbl->mdl_request.set_type(table->mdl_request.type);
|
||||
tbl->updating= table->updating;
|
||||
}
|
||||
/*
|
||||
If the view is mergeable, we might want to
|
||||
|
Reference in New Issue
Block a user