mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-12137 DELETE statement with the same source and target
* various cleanups (mostly cosmetic) * remove useless tests (that were tesing the error condition) * optimize delete_use_source test (from 6 mins to 50 seconds, mainly by removing two huge rollbacks at the end).
This commit is contained in:
@ -1496,7 +1496,7 @@ static bool mysql_test_delete(Prepared_statement *stmt,
|
||||
uint table_count= 0;
|
||||
THD *thd= stmt->thd;
|
||||
LEX *lex= stmt->lex;
|
||||
uint delete_while_scanning=1;
|
||||
bool delete_while_scanning;
|
||||
DBUG_ENTER("mysql_test_delete");
|
||||
|
||||
if (delete_precheck(thd, table_list) ||
|
||||
@ -1526,7 +1526,7 @@ static bool mysql_test_delete(Prepared_statement *stmt,
|
||||
lex->select_lex.with_wild,
|
||||
lex->select_lex.item_list,
|
||||
&lex->select_lex.where,
|
||||
delete_while_scanning));
|
||||
&delete_while_scanning));
|
||||
error:
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user