1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-12137 DELETE statement with the same source and target

single-table deletes only
This commit is contained in:
halfspawn
2017-07-07 17:50:09 +02:00
committed by Sergei Golubchik
parent 30fee6150a
commit abf95afa2a
18 changed files with 529 additions and 74 deletions

View File

@ -27,7 +27,8 @@ typedef class Item COND;
template <typename T> class SQL_I_List;
int mysql_prepare_delete(THD *thd, TABLE_LIST *table_list,
uint wild_num, List<Item> &field_list, Item **conds);
uint wild_num, List<Item> &field_list, Item **conds,
uint &delete_while_scanning);
bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
SQL_I_List<ORDER> *order, ha_rows rows,
ulonglong options, select_result *result);