58constexpr const size_t PROCESS_LIST_WIDTH{100};
60constexpr const size_t PROCESS_LIST_INFO_WIDTH{65535};
64 bool for_show_create_stmt);
131 size_t *
length,
bool *is_null =
nullptr);
138 size_t *
length,
bool *is_null =
nullptr);
146 unsigned int vector_dimensionality = 0);
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:930
Definition: sql_optimizer.h:133
Definition: sql_list.h:494
Definition: sql_executor.h:256
This class represents a query block, aka a query specification, which is a query consisting of a SELE...
Definition: sql_lex.h:1170
LEX * lex
Pointer to LEX for this statement.
Definition: sql_cmd_dml.h:222
Definition: sql_select.h:76
Represents SHOW BINARY LOG STATUS statement.
Definition: sql_show.h:450
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:573
Sql_cmd_show_binary_log_status()
Definition: sql_show.h:452
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:569
Following are all subclasses of class Sql_cmd_show, in alphabetical order.
Definition: sql_show.h:234
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:313
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:317
Sql_cmd_show_binlog_events()
Definition: sql_show.h:236
Represents SHOW BINARY LOGS statement.
Definition: sql_show.h:249
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:321
Sql_cmd_show_binlogs()
Definition: sql_show.h:251
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:325
Represents SHOW CHARACTER SET statement.
Definition: sql_show.h:258
Sql_cmd_show_charsets()
Definition: sql_show.h:260
Represents SHOW COLLATION statement.
Definition: sql_show.h:265
Sql_cmd_show_collations()
Definition: sql_show.h:267
Represents SHOW COLUMNS statement.
Definition: sql_show.h:272
Sql_cmd_show_columns()
Definition: sql_show.h:274
Represents SHOW CREATE DATABASE statement.
Definition: sql_show.h:279
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:327
Sql_cmd_show_create_database()
Definition: sql_show.h:281
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:329
Represents SHOW CREATE EVENT statement.
Definition: sql_show.h:288
Sql_cmd_show_create_event()
Definition: sql_show.h:290
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:339
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:337
Represents SHOW CREATE FUNCTION statement.
Definition: sql_show.h:297
Sql_cmd_show_create_function()
Definition: sql_show.h:299
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:344
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:346
Represents SHOW CREATE LIBRARY statement.
Definition: sql_show.h:307
Sql_cmd_show_create_library()
Definition: sql_show.h:309
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:350
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:352
Represents SHOW CREATE PROCEDURE statement.
Definition: sql_show.h:317
Sql_cmd_show_create_procedure()
Definition: sql_show.h:319
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:358
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:356
Represents SHOW CREATE TABLE/VIEW statement.
Definition: sql_show.h:327
const bool m_is_view
Definition: sql_show.h:337
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:362
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:367
Table_ident *const m_table_ident
Definition: sql_show.h:338
Sql_cmd_show_create_table(bool is_view, Table_ident *table_ident)
Definition: sql_show.h:329
Represents SHOW CREATE TRIGGER statement.
Definition: sql_show.h:343
Sql_cmd_show_create_trigger()
Definition: sql_show.h:345
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:436
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:438
Represents SHOW CREATE USER statement.
Definition: sql_show.h:353
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:447
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:449
Sql_cmd_show_create_user()
Definition: sql_show.h:355
Represents SHOW DATABASES statement.
Definition: sql_show.h:362
Sql_cmd_show_databases()
Definition: sql_show.h:364
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:462
Represents SHOW ENGINE LOGS statement.
Definition: sql_show.h:370
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:476
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:472
Sql_cmd_show_engine_logs()
Definition: sql_show.h:372
Represents SHOW ENGINE MUTEX statement.
Definition: sql_show.h:379
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:484
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:480
Sql_cmd_show_engine_mutex()
Definition: sql_show.h:381
Represents SHOW ENGINE STATUS statement.
Definition: sql_show.h:388
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:492
Sql_cmd_show_engine_status()
Definition: sql_show.h:390
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:488
Represents SHOW STORAGE ENGINES statement.
Definition: sql_show.h:398
Sql_cmd_show_engines()
Definition: sql_show.h:400
Represents SHOW ERRORS statement.
Definition: sql_show.h:405
Sql_cmd_show_errors()
Definition: sql_show.h:407
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.h:408
Represents SHOW EVENTS statement.
Definition: sql_show.h:415
Sql_cmd_show_events()
Definition: sql_show.h:417
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:496
bool check_parameters(THD *) override
Definition: sql_show.h:420
Represents SHOW GRANTS statement.
Definition: sql_show.h:425
const LEX_USER * for_user
Definition: sql_show.h:437
const List< LEX_USER > * using_users
Definition: sql_show.h:438
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:528
Sql_cmd_show_grants(const LEX_USER *for_user_arg, const List< LEX_USER > *using_users_arg)
Definition: sql_show.h:427
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:523
Represents the SHOW INDEX statement.
Definition: sql_show.h:443
Sql_cmd_show_keys()
Definition: sql_show.h:445
Common base class: Represents commands that are not represented by a plan that is equivalent to a SEL...
Definition: sql_show.h:183
bool execute(THD *thd) override
Execute a DML statement.
Definition: sql_show.h:187
Sql_cmd_show_noplan(enum_sql_command sql_command)
Definition: sql_show.h:185
Represents SHOW OPEN TABLES statement.
Definition: sql_show.h:460
Sql_cmd_show_open_tables()
Definition: sql_show.h:462
Represents SHOW PARSE_TREE statement.
Definition: sql_show.h:502
Sql_cmd_show_parse_tree()
Definition: sql_show.h:504
Represents SHOW PLUGINS statement.
Definition: sql_show.h:467
Sql_cmd_show_plugins()
Definition: sql_show.h:469
Represents SHOW PRIVILEGES statement.
Definition: sql_show.h:474
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:587
Sql_cmd_show_privileges()
Definition: sql_show.h:476
Represents SHOW PROCESSLIST statement.
Definition: sql_show.h:482
Sql_cmd_show_processlist(bool verbose)
Definition: sql_show.h:485
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:598
Sql_cmd_show_processlist()
Definition: sql_show.h:484
void set_use_pfs(bool use_pfs)
Definition: sql_show.h:490
const bool m_verbose
Definition: sql_show.h:496
bool use_pfs()
Definition: sql_show.h:494
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:591
bool verbose() const
Definition: sql_show.h:491
bool m_use_pfs
Definition: sql_show.h:497
Represents SHOW PROFILE statement.
Definition: sql_show.h:509
Sql_cmd_show_profile()
Definition: sql_show.h:511
Represents SHOW PROFILES statement.
Definition: sql_show.h:516
Sql_cmd_show_profiles()
Definition: sql_show.h:518
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:577
Represents SHOW RELAYLOG EVENTS statement.
Definition: sql_show.h:524
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:622
Sql_cmd_show_relaylog_events()
Definition: sql_show.h:526
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:618
Represents SHOW REPLICA STATUS statement.
Definition: sql_show.h:548
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:667
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:663
Sql_cmd_show_replica_status()
Definition: sql_show.h:550
Represents SHOW REPLICAS statement.
Definition: sql_show.h:539
Sql_cmd_show_replicas()
Definition: sql_show.h:541
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:659
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:655
Represents SHOW FUNCTION CODE and SHOW PROCEDURE CODE statements.
Definition: sql_show.h:218
const sp_name * m_routine_name
Definition: sql_show.h:227
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.cc:630
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:625
Sql_cmd_show_routine_code(enum_sql_command sql_command, const sp_name *routine_name)
Definition: sql_show.h:220
Common base class: Represents commands that operate on a schema (database)
Definition: sql_show.h:197
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:242
bool check_parameters(THD *thd) override
Definition: sql_show.cc:271
bool set_metadata_lock(THD *thd)
Definition: sql_show.cc:225
Sql_cmd_show_schema_base(enum_sql_command command)
Definition: sql_show.h:199
Represents SHOW STATUS FUNCTION statement.
Definition: sql_show.h:566
Sql_cmd_show_status_func()
Definition: sql_show.h:568
Represents SHOW STATUS PROCEDURE statement.
Definition: sql_show.h:573
Sql_cmd_show_status_proc()
Definition: sql_show.h:575
Represents SHOW STATUS statement.
Definition: sql_show.h:558
bool execute(THD *thd) override
Execute a DML statement.
Definition: sql_show.cc:768
Sql_cmd_show_status()
Definition: sql_show.h:560
Common base class: Represents the SHOW COLUMNS and SHOW KEYS statements.
Definition: sql_show.h:207
bool check_privileges(THD *thd) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:288
bool check_parameters(THD *thd) override
Definition: sql_show.cc:718
bool m_temporary
True if table to be analyzed is temporary.
Definition: sql_show.h:213
Sql_cmd_show_table_base(enum_sql_command command)
Definition: sql_show.h:209
Represents SHOW TABLE STATUS statement.
Definition: sql_show.h:580
Sql_cmd_show_table_status()
Definition: sql_show.h:582
Represents SHOW TABLES statement.
Definition: sql_show.h:588
Sql_cmd_show_tables()
Definition: sql_show.h:590
Represents SHOW TRIGGERS statement.
Definition: sql_show.h:595
Sql_cmd_show_triggers()
Definition: sql_show.h:597
Represents SHOW VARIABLES statement.
Definition: sql_show.h:602
Sql_cmd_show_variables()
Definition: sql_show.h:604
Represents SHOW WARNINGS statement.
Definition: sql_show.h:609
Sql_cmd_show_warnings()
Definition: sql_show.h:611
bool execute_inner(THD *thd) override
The inner parts of query optimization and execution.
Definition: sql_show.h:612
Sql_cmd_show represents the SHOW statements that are implemented as SELECT statements internally.
Definition: sql_show.h:161
bool execute(THD *thd) override
Execute a DML statement.
Definition: sql_show.cc:217
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_show.h:165
virtual bool check_parameters(THD *)
Definition: sql_show.h:166
Sql_cmd_show(enum_sql_command sql_command)
Definition: sql_show.h:163
enum_sql_command m_sql_command
Definition: sql_show.h:173
bool check_privileges(THD *) override
Perform an authorization check for a prepared SELECT statement.
Definition: sql_show.cc:210
bool precheck(THD *thd) override
Generally, the SHOW commands do not distinguish precheck and regular check.
Definition: sql_show.h:168
@ SL_NOTE
Definition: sql_error.h:64
@ SL_ERROR
Definition: sql_error.h:64
@ SL_WARNING
Definition: sql_error.h:64
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:167
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
LEX * lex
Definition: sql_class.h:1001
Definition: sql_lex.h:308
ST_SCHEMA_TABLE * schema_table
Definition: table.h:3757
Definition: sp_head.h:124
This file contains the field type.
enum_field_types
Column types for MySQL Note: Keep include/mysql/components/services/bits/stored_program_bits....
Definition: field_types.h:55
virtual bool execute_inner(THD *thd)
The inner parts of query optimization and execution.
Definition: sql_select.cc:1098
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
enum_sql_command
Definition: my_sqlcommand.h:46
@ SQLCOM_SHOW_ENGINE_LOGS
Definition: my_sqlcommand.h:64
@ SQLCOM_SHOW_GRANTS
Definition: my_sqlcommand.h:70
@ SQLCOM_SHOW_CREATE_DB
Definition: my_sqlcommand.h:74
@ SQLCOM_SHOW_STATUS_FUNC
Definition: my_sqlcommand.h:145
@ SQLCOM_SHOW_CREATE_FUNC
Definition: my_sqlcommand.h:143
@ SQLCOM_SHOW_CREATE_TRIGGER
Definition: my_sqlcommand.h:174
@ SQLCOM_SHOW_ENGINE_MUTEX
Definition: my_sqlcommand.h:66
@ SQLCOM_SHOW_PARSE_TREE
Definition: my_sqlcommand.h:206
@ SQLCOM_SHOW_PRIVILEGES
Definition: my_sqlcommand.h:129
@ SQLCOM_SHOW_BINLOGS
Definition: my_sqlcommand.h:115
@ SQLCOM_SHOW_BINLOG_EVENTS
Definition: my_sqlcommand.h:123
@ SQLCOM_SHOW_REPLICAS
Definition: my_sqlcommand.h:120
@ SQLCOM_SHOW_WARNS
Definition: my_sqlcommand.h:125
@ SQLCOM_SHOW_STATUS_PROC
Definition: my_sqlcommand.h:144
@ SQLCOM_SHOW_PLUGINS
Definition: my_sqlcommand.h:165
@ SQLCOM_SHOW_PROFILE
Definition: my_sqlcommand.h:175
@ SQLCOM_SHOW_DATABASES
Definition: my_sqlcommand.h:58
@ SQLCOM_SHOW_CHARSETS
Definition: my_sqlcommand.h:72
@ SQLCOM_SHOW_OPEN_TABLES
Definition: my_sqlcommand.h:116
@ SQLCOM_SHOW_TABLE_STATUS
Definition: my_sqlcommand.h:75
@ SQLCOM_SHOW_ERRORS
Definition: my_sqlcommand.h:127
@ SQLCOM_SHOW_REPLICA_STATUS
Definition: my_sqlcommand.h:69
@ SQLCOM_SHOW_FIELDS
Definition: my_sqlcommand.h:60
@ SQLCOM_SHOW_CREATE_USER
Definition: my_sqlcommand.h:183
@ SQLCOM_SHOW_STATUS
Definition: my_sqlcommand.h:63
@ SQLCOM_SHOW_BINLOG_STATUS
Definition: my_sqlcommand.h:68
@ SQLCOM_SHOW_ENGINE_STATUS
Definition: my_sqlcommand.h:65
@ SQLCOM_SHOW_EVENTS
Definition: my_sqlcommand.h:173
@ SQLCOM_SHOW_CREATE_PROC
Definition: my_sqlcommand.h:142
@ SQLCOM_SHOW_COLLATIONS
Definition: my_sqlcommand.h:73
@ SQLCOM_SHOW_KEYS
Definition: my_sqlcommand.h:61
@ SQLCOM_SHOW_TABLES
Definition: my_sqlcommand.h:59
@ SQLCOM_SHOW_VARIABLES
Definition: my_sqlcommand.h:62
@ SQLCOM_SHOW_CREATE_EVENT
Definition: my_sqlcommand.h:172
@ SQLCOM_SHOW_PROCESSLIST
Definition: my_sqlcommand.h:67
@ SQLCOM_SHOW_RELAYLOG_EVENTS
Definition: my_sqlcommand.h:179
@ SQLCOM_SHOW_STORAGE_ENGINES
Definition: my_sqlcommand.h:128
@ SQLCOM_SHOW_CREATE_LIBRARY
Definition: my_sqlcommand.h:209
@ SQLCOM_SHOW_TRIGGERS
Definition: my_sqlcommand.h:76
@ SQLCOM_SHOW_CREATE
Definition: my_sqlcommand.h:71
@ SQLCOM_SHOW_PROFILES
Definition: my_sqlcommand.h:176
char * user
Definition: mysqladmin.cc:67
void error(const char *format,...)
static uint verbose
Definition: mysqlcheck.cc:66
uint16_t value_type
Definition: vt100.h:184
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1117
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
const std::string charset("charset")
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
static mysql_service_status_t create(my_h_string *) noexcept
Definition: mysql_string_all_empty.cc:43
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418
const char * table_name
Definition: rules_table_service.cc:56
const char * db_name
Definition: rules_table_service.cc:55
std::list< T, ut::allocator< T > > list
Specialization of list which uses ut_allocator.
Definition: ut0new.h:2880
required string type
Definition: replication_group_member_actions.proto:34
enum enum_mysql_show_type SHOW_TYPE
Definition: set_var.h:75
enum_var_type
Definition: set_var.h:92
enum_schema_tables
Definition: handler.h:924
bool mysqld_show_warnings(THD *thd, ulong levels_to_show)
Send all notes, errors or warnings to the client in a result set.
Definition: sql_error.cc:742
ST_SCHEMA_TABLE * find_schema_table(THD *thd, const char *table_name)
Definition: sql_show.cc:4547
void reset_status_vars()
Definition: sql_show.cc:3354
enum enum_mysql_show_type SHOW_TYPE
Definition: sql_show.h:53
enum enum_schema_tables get_schema_table_idx(ST_SCHEMA_TABLE *schema_table)
Definition: sql_show.cc:3854
int get_quote_char_for_identifier(const THD *thd, const char *name, size_t length)
Definition: sql_show.cc:1605
bool schema_table_store_record(THD *thd, TABLE *table)
Definition: sql_show.cc:3788
bool do_fill_information_schema_table(THD *thd, Table_ref *table_list, Item *condition)
Fill INFORMATION_SCHEMA-table, leave correct Diagnostics_area state after itself.
Definition: sql_show.cc:4922
void append_identifier(const THD *thd, String *packet, const char *name, size_t length, const CHARSET_INFO *from_cs=nullptr, const CHARSET_INFO *to_cs=nullptr)
Convert and quote the given identifier if needed and append it to the target string.
Definition: sql_show.cc:1519
const char * get_one_variable_ext(THD *running_thd, THD *target_thd, const SHOW_VAR *variable, enum_var_type value_type, SHOW_TYPE show_type, System_status_var *status_var, const CHARSET_INFO **charset, char *buff, size_t *length, bool *is_null=nullptr)
Returns the value of a system or a status variable.
Definition: sql_show.cc:3577
bool make_table_list(THD *thd, Query_block *sel, const LEX_CSTRING &db_name, const LEX_CSTRING &table_name)
Prepare a Table_ident and add a table_list into Query_block.
Definition: sql_show.cc:3844
void free_status_vars()
Definition: sql_show.cc:3378
void mysqld_list_processes(THD *thd, const char *user, bool verbose, bool has_cursor)
List running processes (actually connected sessions).
Definition: sql_show.cc:2990
void init_status_vars()
Definition: sql_show.cc:3348
std::atomic_ullong deprecated_use_i_s_processlist_last_timestamp
Last time information_schema.processlist was used, as usec since epoch.
Definition: sql_show.cc:162
bool mysqld_show_privileges(THD *thd)
Definition: sql_show.cc:965
ulonglong get_status_vars_version(void)
Definition: sql_show.cc:3367
TYPELIB grant_types
Definition: sql_show.cc:195
const char * get_one_variable(THD *thd, const SHOW_VAR *variable, enum_var_type value_type, SHOW_TYPE show_type, System_status_var *status_var, const CHARSET_INFO **charset, char *buff, size_t *length, bool *is_null=nullptr)
Returns the value of a system or a status variable.
Definition: sql_show.cc:3550
ST_SCHEMA_TABLE * get_schema_table(enum enum_schema_tables schema_table_idx)
Definition: sql_show.cc:4566
void view_store_options(const THD *thd, Table_ref *table, String *buff)
Definition: sql_show.cc:2673
void mysqld_list_fields(THD *thd, Table_ref *table, const char *wild)
Definition: sql_show.cc:1385
void calc_sum_of_all_status(System_status_var *to)
Definition: sql_show.cc:3762
bool convert_heap_table_to_ondisk(THD *thd, TABLE *table, int error)
Convert HEAP table to InnoDB table if necessary.
Definition: sql_show.cc:3827
bool make_schema_query_block(THD *thd, Query_block *sel, enum enum_schema_tables schema_table_idx)
Generate select from information_schema table.
Definition: sql_show.cc:4851
bool mysql_schema_table(THD *thd, LEX *lex, Table_ref *table_list)
Create information_schema table.
Definition: sql_show.cc:4772
int schema_table_store_record2(THD *thd, TABLE *table, bool make_ondisk)
Store record to I_S table, convert HEAP table to InnoDB table if necessary.
Definition: sql_show.cc:3809
std::atomic_ulong deprecated_use_i_s_processlist_count
Count number of times information_schema.processlist has been used.
Definition: sql_show.cc:159
void remove_status_vars(SHOW_VAR *list)
Definition: sql_show.cc:3499
void append_definer(const THD *thd, String *buffer, const LEX_CSTRING &definer_user, const LEX_CSTRING &definer_host)
Append DEFINER clause to the given buffer.
Definition: sql_show.cc:2715
bool get_recursive_status_var(THD *thd, const char *name, char *const value, enum_var_type var_type, size_t *length, const CHARSET_INFO **charset)
Get the string value of a status variable.
Definition: sql_show.cc:3473
bool add_status_vars(const SHOW_VAR *list)
Definition: sql_show.cc:3322
void show_sql_type(enum_field_types type, bool is_array, uint metadata, String *str, const CHARSET_INFO *field_cs=nullptr, unsigned int vector_dimensionality=0)
A field's SQL type printout.
Definition: sql_show.cc:5604
enum enum_schema_tables int enum constexpr enum_var_type int const size_t constexpr PROCESS_LIST_WIDTH const size_t PROCESS_LIST_INFO_WIDTH bool store_create_info(THD *thd, Table_ref *table_list, String *packet, HA_CREATE_INFO *create_info_arg, bool show_database, bool for_show_create_stmt)
Characters shown for the command in 'show processlist'.
Definition: sql_show.cc:1948
bool show_create_trigger(THD *thd, const sp_name *trg_name)
SHOW CREATE TRIGGER high-level implementation.
Definition: sql_show.cc:5423
void initialize_information_schema_acl()
Definition: sql_show.cc:5496
bool mysqld_show_create_db(THD *thd, char *dbname, HA_CREATE_INFO *create)
Definition: sql_show.cc:1272
bool mysqld_show_create(THD *thd, Table_ref *table_list)
Definition: sql_show.cc:1117
case opt name
Definition: sslopt-case.h:29
enum_mysql_show_type
Declarations for SHOW STATUS support in plugins.
Definition: status_variables_bits.h:32
Definition: m_ctype.h:421
Struct to hold information about the table that should be created.
Definition: handler.h:3253
The LEX object currently serves three different purposes:
Definition: sql_lex.h:3958
Definition: mysql_lex_string.h:40
SHOW STATUS Server status variable.
Definition: status_variables_bits.h:81
Per thread status variables.
Definition: system_variables.h:529
command
Definition: version_token.cc:284
static int is_view(cargo_type x)
Definition: xcom_base.cc:2164