diff options
author | Igor Babaev <igor@askmonty.org> | 2022-06-13 15:31:53 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2022-06-13 15:31:53 -0700 |
commit | 67585abefca3911dd6ebf36824bf352565b883f5 (patch) | |
tree | c4a683f21c095e1e09c45540b1761c4778509338 /sql/opt_range.cc | |
parent | 31c01a5b28fc59479755cab5098b3d13e55f732b (diff) | |
download | mariadb-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/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 7909f5b35f9..13457d7949e 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -11589,7 +11589,7 @@ ha_rows check_quick_select(PARAM *param, uint idx, bool index_only, Skip materialized derived table/view result table from MRR check as they aren't contain any data yet. */ - if (param->table->pos_in_table_list->is_non_derived()) + if (!param->table->pos_in_table_list->is_materialized_derived()) rows= file->multi_range_read_info_const(keynr, &seq_if, (void*)&seq, 0, bufsize, mrr_flags, cost); param->quick_rows[keynr]= rows; |