23#ifndef SQL_UNION_INCLUDED
24#define SQL_UNION_INCLUDED
70 bool reset()
override;
73 const char *alias,
bool bit_fields_as_long,
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:802
Definition: sql_list.h:433
This class represents a query expression (one query block or several query blocks combined with UNION...
Definition: sql_lex.h:629
Definition: query_result.h:200
Definition: sql_union.h:39
Query_result_union()
Definition: sql_union.h:48
bool reset() override
Reset and empty the temporary table that stores the materialized query result.
Definition: sql_union.cc:218
const ha_rows * row_count() const override
Definition: sql_union.h:77
virtual bool postponed_prepare(THD *thd, const mem_root_deque< Item * > &types)
Do prepare() if preparation has been postponed until column type information is computed (used by Que...
Definition: sql_union.h:61
Temp_table_param tmp_table_param
Definition: sql_union.h:41
virtual bool flush()
Definition: sql_union.cc:139
bool create_result_table(THD *thd, const mem_root_deque< Item * > &column_types, bool is_distinct, ulonglong options, const char *alias, bool bit_fields_as_long, bool create_table)
Create a temporary table to store the result of a query expression (used, among others,...
Definition: sql_union.cc:163
bool send_data(THD *thd, const mem_root_deque< Item * > &items) override
Definition: sql_union.cc:111
TABLE * table
Definition: sql_union.h:46
bool prepare(THD *thd, const mem_root_deque< Item * > &list, Query_expression *u) override
Perform preparation specific to the query expression or DML statement.
Definition: sql_union.cc:105
ha_rows m_rows_in_table
Count of rows successfully stored in tmp table.
Definition: sql_union.h:43
void cleanup(THD *) override
Cleanup after this execution.
Definition: sql_union.h:69
uint get_hidden_field_count()
Definition: sql_union.h:78
bool send_eof(THD *thd) override
Definition: sql_union.cc:137
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_class.h:945
Object containing parameters used when creating and using temporary tables.
Definition: temp_table_param.h:98
uint hidden_field_count
Definition: temp_table_param.h:136
A (partial) implementation of std::deque allocating its blocks on a MEM_ROOT.
Definition: mem_root_deque.h:109
Fido Client Authentication nullptr
Definition: fido_client_plugin.cc:221
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1139
Header for compiler-dependent features.
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
Definition: options.cc:48
bool optimize_derived(THD *thd)
Optimize the query expression representing a derived table/view.
Definition: sql_derived.cc:1496
bool create_materialized_table(THD *thd)
Create result table for a materialized derived table/view.
Definition: sql_derived.cc:1544
unsigned int uint
Definition: uca-dump.cc:29