1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

multi-delete with subselects (SCRUM)

This commit is contained in:
bell@sanja.is.com.ua
2002-11-26 22:33:33 +02:00
parent 6b403114a2
commit e419b767ac
3 changed files with 45 additions and 1 deletions

View File

@@ -2095,10 +2095,12 @@ mysql_execute_command(THD *thd)
/* Fix tables-to-be-deleted-from list to point at opened tables */
for (auxi=(TABLE_LIST*) aux_tables ; auxi ; auxi=auxi->next)
auxi->table= auxi->table_list->table;
fix_tables_pointers(&lex->select_lex);
if (!thd->fatal_error && (result= new multi_delete(thd,aux_tables,
table_count)))
{
res= mysql_select(thd,tables,select_lex->item_list,
res= mysql_select(thd,select_lex->get_table_list(),
select_lex->item_list,
select_lex->where,
(ORDER *)NULL,(ORDER *)NULL,(Item *)NULL,
(ORDER *)NULL,