MySQL  8.0.17
Source Code Documentation
sql_union.cc File Reference
#include "sql/sql_union.h"
#include "my_config.h"
#include <string.h>
#include <sys/types.h>
#include "memory_debugging.h"
#include "my_alloc.h"
#include "my_base.h"
#include "my_dbug.h"
#include "my_sys.h"
#include "mysql/udf_registration_types.h"
#include "mysqld_error.h"
#include "sql/auth/auth_acls.h"
#include "sql/current_thd.h"
#include "sql/debug_sync.h"
#include "sql/error_handler.h"
#include "sql/field.h"
#include "sql/filesort.h"
#include "sql/handler.h"
#include "sql/item.h"
#include "sql/item_subselect.h"
#include "sql/mem_root_array.h"
#include "sql/opt_explain.h"
#include "sql/opt_explain_format.h"
#include "sql/opt_trace_context.h"
#include "sql/parse_tree_node_base.h"
#include "sql/parse_tree_nodes.h"
#include "sql/query_options.h"
#include "sql/set_var.h"
#include "sql/sql_base.h"
#include "sql/sql_class.h"
#include "sql/sql_const.h"
#include "sql/sql_executor.h"
#include "sql/sql_lex.h"
#include "sql/sql_list.h"
#include "sql/sql_optimizer.h"
#include "sql/sql_select.h"
#include "sql/sql_tmp_table.h"
#include "sql/table_function.h"
#include "sql/thr_malloc.h"
#include "sql/window.h"
#include "template_utils.h"

Classes

class  Query_result_union_direct
 UNION result that is passed directly to the receiving Query_result without filling a temporary table. More...
 
class  Change_current_select
 RAII class to automate saving/restoring of current_select() More...
 
class  Recursive_executor
 Helper class for SELECT_LEX_UNIT::execute(). More...
 

Functions

static void destroy_materialized (THD *thd, TABLE_LIST *list)
 Closes (and, if last reference, drops) temporary tables created to materialize derived tables, schema tables and CTEs. More...
 

Function Documentation

◆ destroy_materialized()

static void destroy_materialized ( THD thd,
TABLE_LIST list 
)
static

Closes (and, if last reference, drops) temporary tables created to materialize derived tables, schema tables and CTEs.

Parameters
thdThread handler
listList of tables to search in