summaryrefslogtreecommitdiff
path: root/sql/sql_update.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2022-06-13 15:31:53 -0700
committerIgor Babaev <igor@askmonty.org>2022-06-13 15:31:53 -0700
commit67585abefca3911dd6ebf36824bf352565b883f5 (patch)
treec4a683f21c095e1e09c45540b1761c4778509338 /sql/sql_update.h
parent31c01a5b28fc59479755cab5098b3d13e55f732b (diff)
downloadmariadb-git-bb-10.7-mdev-27159.tar.gz
MDEV-27159 Re-design the upper level of handling DML commandsbb-10.7-mdev-27159
This is the second commit for the task. This patch allows to execute only single-table and multi-table DELETE statements using the method Sql_cmd_dml::execute(). The code that handles INSERT statements has not been touched. This patch still does not have the final changes to handle UPDATE/DELETE statements. All tests from the main suite passed. With --ps-protocol one test from opt_trace_security returns not the same result. This will be fixed soon.
Diffstat (limited to 'sql/sql_update.h')
-rw-r--r--sql/sql_update.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/sql/sql_update.h b/sql/sql_update.h
index e52d3cda641..cf33461e860 100644
--- a/sql/sql_update.h
+++ b/sql/sql_update.h
@@ -27,19 +27,7 @@ class THD;
typedef class st_select_lex SELECT_LEX;
typedef class st_select_lex_unit SELECT_LEX_UNIT;
-bool mysql_prepare_update(THD *thd, TABLE_LIST *table_list,
- Item **conds, uint order_num, ORDER *order);
bool check_unique_table(THD *thd, TABLE_LIST *table_list);
-int mysql_update(THD *thd,TABLE_LIST *tables,List<Item> &fields,
- List<Item> &values,COND *conds,
- uint order_num, ORDER *order, ha_rows limit,
- bool ignore, ha_rows *found_return, ha_rows *updated_return);
-bool mysql_multi_update(THD *thd, TABLE_LIST *table_list,
- List<Item> *fields, List<Item> *values,
- COND *conds, ulonglong options,
- enum enum_duplicates handle_duplicates, bool ignore,
- SELECT_LEX_UNIT *unit, SELECT_LEX *select_lex,
- multi_update **result);
bool records_are_comparable(const TABLE *table);
bool compare_record(const TABLE *table);