mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
now all tables of query are locked in one place (including derived tables)
fixed BUG#2120 and other problem with EXPLAINing derived tables
This commit is contained in:
@ -79,7 +79,6 @@ int mysql_update(THD *thd,
|
||||
if ((open_and_lock_tables(thd, table_list)))
|
||||
DBUG_RETURN(-1);
|
||||
thd->proc_info="init";
|
||||
fix_tables_pointers(thd->lex->all_selects_list);
|
||||
table= table_list->table;
|
||||
table->file->info(HA_STATUS_VARIABLE | HA_STATUS_NO_LOCK);
|
||||
|
||||
@ -431,7 +430,6 @@ int mysql_multi_update(THD *thd,
|
||||
#endif
|
||||
if ((res=open_and_lock_tables(thd,table_list)))
|
||||
DBUG_RETURN(res);
|
||||
fix_tables_pointers(thd->lex->all_selects_list);
|
||||
|
||||
select_lex->select_limit= HA_POS_ERROR;
|
||||
|
||||
|
Reference in New Issue
Block a user