summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorGalina Shalygina <galashalygina@gmail.com>2016-05-09 23:39:10 +0300
committerGalina Shalygina <galashalygina@gmail.com>2016-05-09 23:39:10 +0300
commitf516b966e131177244941319c553e138fbf9f6ff (patch)
tree912b7330543fa95cd7f9dd4c53723a63ce5f7e88 /sql/sql_class.h
parent5703d2680c0d4884d86b7541cd9b46943f929a2d (diff)
downloadmariadb-git-f516b966e131177244941319c553e138fbf9f6ff.tar.gz
Main patch for mdev-9864
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index e0792a4059f..0100a9807f5 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -4196,6 +4196,7 @@ protected:
/* Something used only by the parser: */
public:
select_result(THD *thd_arg): select_result_sink(thd_arg) {}
+ void set_unit(SELECT_LEX_UNIT *unit_arg) { unit= unit_arg; }
virtual ~select_result() {};
/**
Change wrapped select_result.
@@ -4637,6 +4638,7 @@ public:
}
};
+
class select_union :public select_result_interceptor
{
public:
@@ -4674,6 +4676,25 @@ public:
};
+class select_union_recursive :public select_union
+{
+ public:
+ TABLE *incr_table;
+ List<TABLE> rec_tables;
+
+ select_union_recursive(THD *thd_arg):
+ select_union(thd_arg), incr_table(0) {};
+
+ int send_data(List<Item> &items);
+ bool create_result_table(THD *thd, List<Item> *column_types,
+ bool is_distinct, ulonglong options,
+ const char *alias,
+ bool bit_fields_as_long,
+ bool create_table,
+ bool keep_row_order= FALSE);
+ void cleanup();
+};
+
/**
UNION result that is passed directly to the receiving select_result
without filling a temporary table.