mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch '10.3' into 10.4
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
|
||||
*/
|
||||
|
||||
#define MYSQL_LEX 1
|
||||
@ -442,7 +442,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);
|
||||
}
|
||||
|
||||
@ -1565,6 +1565,7 @@ bool mysql_make_view(THD *thd, TABLE_SHARE *share, TABLE_LIST *table,
|
||||
if (!tbl->sequence)
|
||||
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