mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
fixed update with subselect (FOR REVIEW)
This commit is contained in:
@ -1567,16 +1567,24 @@ int open_tables(THD *thd,TABLE_LIST *start)
|
||||
}
|
||||
|
||||
|
||||
TABLE *open_ltable(THD *thd, TABLE_LIST *table_list, thr_lock_type lock_type)
|
||||
TABLE *open_ltable(THD *thd, TABLE_LIST *table_list, thr_lock_type lock_type,
|
||||
bool multiopen)
|
||||
{
|
||||
TABLE *table;
|
||||
bool refresh;
|
||||
DBUG_ENTER("open_ltable");
|
||||
|
||||
thd->proc_info="Opening table";
|
||||
while (!(table=open_table(thd,table_list->db,
|
||||
table_list->real_name,table_list->alias,
|
||||
&refresh)) && refresh) ;
|
||||
if (table_list->next && multiopen)
|
||||
{
|
||||
while (open_tables(thd,table_list) && refresh) ;
|
||||
table= table_list->table;
|
||||
}
|
||||
else
|
||||
while (!(table= open_table(thd,table_list->db,
|
||||
table_list->real_name,table_list->alias,
|
||||
&refresh)) && refresh) ;
|
||||
|
||||
if (table)
|
||||
{
|
||||
int error;
|
||||
|
Reference in New Issue
Block a user