From a4d1783aaeea6a3e4a46084fde161ff7152fd2da Mon Sep 17 00:00:00 2001 From: Igor Babaev Date: Fri, 17 Oct 2014 12:59:28 -0700 Subject: Fixed bug mdev-6874. The method subselect_union_engine::no_rows() must take into account the fact that now unit->fake_select_lex is NULL for for select_union_direct objects. --- sql/sql_union.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/sql_union.cc') diff --git a/sql/sql_union.cc b/sql/sql_union.cc index cfc34b0f90a..9b8188b568d 100644 --- a/sql/sql_union.cc +++ b/sql/sql_union.cc @@ -246,6 +246,7 @@ int select_union_direct::send_data(List &items) return false; } + send_records++; fill_record(thd, table, table->field, items, true, false); if (thd->is_error()) return true; /* purecov: inspected */ -- cgit v1.2.1