diff options
author | Igor Babaev <igor@askmonty.org> | 2022-06-18 00:49:15 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2022-06-18 00:49:15 -0700 |
commit | 2f09d93bc4054a965178f1a1d953924f09739b56 (patch) | |
tree | 7f02ea6d1d7c0e9a41ea6267fe5eac4989a23c55 /sql/opt_range.cc | |
parent | d371e35257c45895318c4efbed20e5bfdcc7cee9 (diff) | |
download | mariadb-git-bb-10.10-mdev-28883.tar.gz |
MDEV-27159 Re-design the upper level of handling DML commandsbb-10.10-mdev-28883
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/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 391a04c2a1a..f70122fd7ea 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -11599,7 +11599,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; |