MySQL 9.1.0
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 "field_types.h"
#include "m_string.h"
#include "mutex_lock.h"
#include "my_compiler.h"
#include "my_dbug.h"
#include "my_rnd.h"
#include "my_systime.h"
#include "my_thread.h"
#include "my_time.h"
#include "mysql/components/services/bits/psi_error_bits.h"
#include "mysql/components/services/log_builtins.h"
#include "mysql/components/services/log_shared.h"
#include "mysql/my_loglevel.h"
#include "mysql/plugin_audit.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/psi/mysql_table.h"
#include "mysql/psi/psi_table.h"
#include "mysql/service_mysql_alloc.h"
#include "mysql/strings/m_ctype.h"
#include "mysys_err.h"
#include "pfs_statement_provider.h"
#include "rpl_source.h"
#include "scope_guard.h"
#include "server_component/mysql_server_event_tracking_bridge_imp.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/enum_query_type.h"
#include "sql/error_handler.h"
#include "sql/field.h"
#include "sql/handler.h"
#include "sql/item.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/protocol.h"
#include "sql/protocol_classic.h"
#include "sql/psi_memory_key.h"
#include "sql/query_result.h"
#include "sql/rpl_rli.h"
#include "sql/rpl_transaction_write_set_ctx.h"
#include "sql/server_component/mysql_thd_store_imp.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_cmd.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_timer.h"
#include "sql/table.h"
#include "sql/table_cache.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 "sql/xa/sql_cmd_xa.h"
#include "sql/xa/transaction_cache.h"
#include "storage/perfschema/pfs_instr_class.h"
#include "storage/perfschema/terminology_use_previous.h"
#include "string_with_len.h"
#include "template_utils.h"
#include "thr_mutex.h"

Functions

bool fail_on_alloc (THD *thd)
 For debug purpose only. More...
 
bool add_item_to_list (THD *thd, Item *item)
 
void my_ok (THD *thd, ulonglong affected_rows, ulonglong id, const char *message)
 A short cut for thd->get_stmt_da()->set_ok_status(). More...
 
void my_eof (THD *thd)
 A short cut for thd->get_stmt_da()->set_eof_status(). More...
 

Variables

char empty_c_string [1] = {0}
 
PSI_stage_info stage_waiting_for_disk_space
 

Function Documentation

◆ add_item_to_list()

bool add_item_to_list ( THD thd,
Item item 
)

◆ fail_on_alloc()

bool fail_on_alloc ( THD thd)

For debug purpose only.

Used for MTR mem_cnt_sql_keys, mem_cnt_temptable_keys keys.

Parameters
thdpointer to THD object

◆ my_eof()

void my_eof ( THD thd)

A short cut for thd->get_stmt_da()->set_eof_status().

◆ my_ok()

void my_ok ( THD thd,
ulonglong  affected_rows,
ulonglong  id,
const char *  message 
)

A short cut for thd->get_stmt_da()->set_ok_status().

Variable Documentation

◆ empty_c_string

char empty_c_string[1] = {0}

◆ stage_waiting_for_disk_space

PSI_stage_info stage_waiting_for_disk_space
extern