MySQL  8.0.16
Source Code Documentation
sql_class.cc File Reference
#include "sql/sql_class.h"
#include <assert.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <algorithm>
#include <utility>
#include "m_ctype.h"
#include "m_string.h"
#include "my_compiler.h"
#include "my_dbug.h"
#include "mysql/components/services/log_builtins.h"
#include "mysql/components/services/psi_error_bits.h"
#include "mysql/psi/mysql_cond.h"
#include "mysql/psi/mysql_error.h"
#include "mysql/psi/mysql_ps.h"
#include "mysql/psi/mysql_stage.h"
#include "mysql/psi/mysql_statement.h"
#include "mysql/service_mysql_alloc.h"
#include "mysys_err.h"
#include "pfs_statement_provider.h"
#include "sql/auth/sql_security_ctx.h"
#include "sql/binlog.h"
#include "sql/check_stack.h"
#include "sql/conn_handler/connection_handler_manager.h"
#include "sql/current_thd.h"
#include "sql/dd/cache/dictionary_client.h"
#include "sql/dd/dd_kill_immunizer.h"
#include "sql/debug_sync.h"
#include "sql/derror.h"
#include "sql/error_handler.h"
#include "sql/item_func.h"
#include "sql/lock.h"
#include "sql/locking_service.h"
#include "sql/log_event.h"
#include "sql/mdl_context_backup.h"
#include "sql/mysqld.h"
#include "sql/mysqld_thd_manager.h"
#include "sql/parse_location.h"
#include "sql/psi_memory_key.h"
#include "sql/query_result.h"
#include "sql/rpl_rli.h"
#include "sql/rpl_slave.h"
#include "sql/rpl_transaction_write_set_ctx.h"
#include "sql/sp_cache.h"
#include "sql/sp_head.h"
#include "sql/sql_audit.h"
#include "sql/sql_backup_lock.h"
#include "sql/sql_base.h"
#include "sql/sql_callback.h"
#include "sql/sql_handler.h"
#include "sql/sql_lex.h"
#include "sql/sql_parse.h"
#include "sql/sql_plugin.h"
#include "sql/sql_prepare.h"
#include "sql/sql_profile.h"
#include "sql/sql_time.h"
#include "sql/sql_timer.h"
#include "sql/strfunc.h"
#include "sql/table.h"
#include "sql/tc_log.h"
#include "sql/thr_malloc.h"
#include "sql/transaction.h"
#include "sql/transaction_info.h"
#include "sql/xa.h"
#include "thr_mutex.h"

Functions

bool add_item_to_list (THD *thd, Item *item)
 
void add_order_to_list (THD *thd, ORDER *order)
 
void reattach_engine_ha_data_to_thd (THD *thd, const struct handlerton *hton)
 The function re-attaches the engine ha_data (which was previously detached by detach_ha_data_from_thd) to THD. More...
 

Variables

char empty_c_string [1] = {0}
 
LEX_STRING EMPTY_STR = {(char *)"", 0}
 
LEX_STRING NULL_STR = {NULL, 0}
 
LEX_CSTRING EMPTY_CSTR = {"", 0}
 
LEX_CSTRING NULL_CSTR = {NULL, 0}
 
PSI_stage_info stage_waiting_for_disk_space
 

Function Documentation

◆ add_item_to_list()

bool add_item_to_list ( THD thd,
Item item 
)

◆ add_order_to_list()

void add_order_to_list ( THD thd,
ORDER order 
)

◆ reattach_engine_ha_data_to_thd()

void reattach_engine_ha_data_to_thd ( THD thd,
const struct handlerton hton 
)

The function re-attaches the engine ha_data (which was previously detached by detach_ha_data_from_thd) to THD.

This is typically done to replication applier executing one of XA-PREPARE, XA-COMMIT ONE PHASE or rollback.

Parameters
thdthread context
htonpointer to handlerton

Variable Documentation

◆ empty_c_string

char empty_c_string[1] = {0}

◆ EMPTY_STR

LEX_STRING EMPTY_STR = {(char *)"", 0}

◆ NULL_STR

LEX_STRING NULL_STR = {NULL, 0}

◆ stage_waiting_for_disk_space

PSI_stage_info stage_waiting_for_disk_space