16 #ifndef SQL_UPDATE_INCLUDED
17 #define SQL_UPDATE_INCLUDED
19 #include "sql_class.h"
25 typedef class st_select_lex SELECT_LEX;
26 typedef class st_select_lex_unit SELECT_LEX_UNIT;
28 bool mysql_prepare_update(THD *thd,
TABLE_LIST *table_list,
29 Item **conds, uint order_num,
ORDER *order);
33 enum enum_duplicates handle_duplicates,
bool ignore,
34 ha_rows *found_return, ha_rows *updated_return);
35 bool mysql_multi_update(THD *thd,
TABLE_LIST *table_list,
37 Item *conds, ulonglong options,
38 enum enum_duplicates handle_duplicates,
bool ignore,
39 SELECT_LEX_UNIT *unit, SELECT_LEX *select_lex,
40 multi_update **result);
41 bool records_are_comparable(
const TABLE *
table);