summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2014-10-17 14:06:54 -0700
committerIgor Babaev <igor@askmonty.org>2014-10-17 14:06:54 -0700
commitec89abfef4d0ceef06e4037e8fa1a3cdad7ca18d (patch)
tree6c917245aab4070607e0bca9f48f8ab07b7c0d3e /sql/sql_class.h
parentaa0fd5ca53b381094c03fce4808032c98d0fe0f4 (diff)
parenta4d1783aaeea6a3e4a46084fde161ff7152fd2da (diff)
downloadmariadb-git-ec89abfef4d0ceef06e4037e8fa1a3cdad7ca18d.tar.gz
Merge branch '10.1' of ../10.1-mdev334 into 10.1
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index b1881db49e9..d44ade1c845 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -4431,11 +4431,13 @@ private:
ha_rows limit;
public:
+ /* Number of rows in the union */
+ ha_rows send_records;
select_union_direct(select_result *result, SELECT_LEX *last_select_lex)
:result(result), last_select_lex(last_select_lex),
done_send_result_set_metadata(false), done_initialize_tables(false),
limit_found_rows(0)
- {}
+ { send_records= 0; }
bool change_result(select_result *new_result);
uint field_count(List<Item> &fields) const
{
@@ -4466,6 +4468,7 @@ public:
and for the results of subquery engines
(select_<something>_subselect).
*/
+ send_records= 0;
DBUG_ASSERT(false); /* purecov: inspected */
}
void set_thd(THD *thd_arg)