mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Some changes in multi-table deletes, with some speed-ups and
incorporations of the new stuff. When Monty approves / corrects it, I will "port" it to multi-table updates. sql/sql_insert.cc: A small bug fix sql/sql_update.cc: query cache invalidation
This commit is contained in:
@ -1862,8 +1862,8 @@ mysql_execute_command(void)
|
||||
/* Fix tables-to-be-deleted-from list to point at opened tables */
|
||||
for (auxi=(TABLE_LIST*) aux_tables ; auxi ; auxi=auxi->next)
|
||||
auxi->table= ((TABLE_LIST*) auxi->table)->table;
|
||||
if ((result=new multi_delete(thd,aux_tables,lex->lock_option,
|
||||
table_count)) && ! thd->fatal_error)
|
||||
if (!thd->fatal_error && (result=new multi_delete(thd,aux_tables,
|
||||
lex->lock_option,table_count)))
|
||||
{
|
||||
res=mysql_select(thd,tables,select_lex->item_list,
|
||||
select_lex->where,
|
||||
@ -1872,10 +1872,10 @@ mysql_execute_command(void)
|
||||
select_lex->options | thd->options |
|
||||
SELECT_NO_JOIN_CACHE,
|
||||
result);
|
||||
delete result;
|
||||
}
|
||||
else
|
||||
res= -1; // Error is not sent
|
||||
delete result;
|
||||
close_thread_tables(thd);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user