diff options
author | Igor Babaev <igor@askmonty.org> | 2022-06-16 23:45:38 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2022-06-16 23:45:38 -0700 |
commit | a2c0e27863e8a875b8fd9f33ca83cc43d24edbf7 (patch) | |
tree | 1bc18fa5416bc8f11745b8d2e744f843a8a27cc0 /sql/sql_class.h | |
parent | 9fe784ff7e56b7b5c182b29819ccc4da5f7b2af7 (diff) | |
download | mariadb-git-bb-10.9-mdev-27159.tar.gz |
MDEV-27159 Re-design the upper level of handling DML commandsbb-10.9-mdev-27159
This patch allows to execute only single-table and multi-table
UPDATE and DELETE statements using the method Sql_cmd_dml::execute().
The code that handles INSERT statements has not been touched.
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 806f77c1ba2..167df5b07d9 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -7063,6 +7063,7 @@ public: enum_duplicates handle_duplicates, bool ignore); ~multi_update(); bool init(THD *thd); + bool init_for_single_table(THD *thd); int prepare(List<Item> &list, SELECT_LEX_UNIT *u); int send_data(List<Item> &items); bool initialize_tables (JOIN *join); @@ -7071,6 +7072,8 @@ public: bool send_eof(); inline ha_rows num_found() const { return found; } inline ha_rows num_updated() const { return updated; } + inline void set_found (ha_rows n) { found= n; } + inline void set_updated (ha_rows n) { updated= n; } virtual void abort_result_set(); void update_used_tables(); void prepare_to_read_rows(); |