summaryrefslogtreecommitdiff
path: root/sql/sql_cursor.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-04-21 15:33:50 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-04-21 15:33:50 +0300
commit620c55e708b9ea94ef8ba309267a6f2f32ed8104 (patch)
tree434f8bbb36626d16e8438b82da1618bd8313f6a2 /sql/sql_cursor.cc
parentfdec842fd7f82b6ed9aec54f82ac50b5eea925b3 (diff)
parentaec856073df12e95b68667587bfd8e469b60e7d4 (diff)
downloadmariadb-git-620c55e708b9ea94ef8ba309267a6f2f32ed8104.tar.gz
Merge 10.4 into 10.5
Diffstat (limited to 'sql/sql_cursor.cc')
-rw-r--r--sql/sql_cursor.cc16
1 files changed, 3 insertions, 13 deletions
diff --git a/sql/sql_cursor.cc b/sql/sql_cursor.cc
index b995a841a74..f473b563f52 100644
--- a/sql/sql_cursor.cc
+++ b/sql/sql_cursor.cc
@@ -80,19 +80,7 @@ public:
Select_materialize(THD *thd_arg, select_result *result_arg):
select_unit(thd_arg), result(result_arg), materialized_cursor(0) {}
virtual bool send_result_set_metadata(List<Item> &list, uint flags);
- bool send_eof()
- {
- if (materialized_cursor)
- materialized_cursor->on_table_fill_finished();
- return false;
- }
-
- void abort_result_set()
- {
- if (materialized_cursor)
- materialized_cursor->on_table_fill_finished();
- }
-
+ bool send_eof() { return false; }
bool view_structure_only() const
{
return result->view_structure_only();
@@ -333,6 +321,8 @@ int Materialized_cursor::open(JOIN *join __attribute__((unused)))
result->abort_result_set();
}
+ on_table_fill_finished();
+
return rc;
}