1
0
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:
bell@sanja.is.com.ua
2002-10-24 22:59:29 +03:00
parent 0ca3212a8c
commit 21ca25debf
8 changed files with 63 additions and 15 deletions

View File

@ -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;