MySQL 8.0.39
Source Code Documentation
my_sqlcommand.h
Go to the documentation of this file.
1/* Copyright (c) 2015, 2024, Oracle and/or its affiliates.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License, version 2.0,
5as published by the Free Software Foundation.
6
7This program is designed to work with certain software (including
8but not limited to OpenSSL) that is licensed under separate terms,
9as designated in a particular file or component or in included license
10documentation. The authors of MySQL hereby grant you an additional
11permission to link the program and your derivative works with the
12separately licensed software that they have either included with
13the program or referenced in the documentation.
14
15This program is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18GNU General Public License, version 2.0, for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef _mysql_sql_command_h
25#define _mysql_sql_command_h
26
27/**
28 @file include/my_sqlcommand.h
29*/
30
31/*
32 @enum enum_sql_command
33 @brief SQL Commands
34
35 SQL Command is resolved during SQL parsing and assigned to the Lex
36 object, accessible from the THD.
37
38 When a command is added here, be sure it's also added in mysqld.cc
39 in "struct show_var_st status_vars[]= {" ...
40
41 If the command returns a result set or is not allowed in stored
42 functions or triggers, please also make sure that
43 sp_get_flags_for_command (sp_head.cc) returns proper flags for the
44 added SQLCOM_.
45*/
206 /* This should be the last !!! */
209
210#endif /* _mysql_sql_command_h */
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_ALTER_DB
Definition: my_sqlcommand.h:85
@ SQLCOM_ALTER_TABLE
Definition: my_sqlcommand.h:50
@ SQLCOM_BINLOG_BASE64_EVENT
Definition: my_sqlcommand.h:164
@ SQLCOM_UPDATE
Definition: my_sqlcommand.h:51
@ SQLCOM_CHECK
Definition: my_sqlcommand.h:93
@ SQLCOM_SHOW_CREATE_DB
Definition: my_sqlcommand.h:74
@ SQLCOM_OPTIMIZE
Definition: my_sqlcommand.h:92
@ SQLCOM_CREATE_SRS
Definition: my_sqlcommand.h:204
@ SQLCOM_SHOW_STATUS_FUNC
Definition: my_sqlcommand.h:145
@ SQLCOM_ALTER_INSTANCE
Definition: my_sqlcommand.h:186
@ SQLCOM_SHOW_CREATE_FUNC
Definition: my_sqlcommand.h:143
@ SQLCOM_SHOW_SLAVE_HOSTS
Definition: my_sqlcommand.h:120
@ SQLCOM_CREATE_DB
Definition: my_sqlcommand.h:83
@ SQLCOM_EXPLAIN_OTHER
Definition: my_sqlcommand.h:182
@ SQLCOM_XA_PREPARE
Definition: my_sqlcommand.h:155
@ SQLCOM_CREATE_TRIGGER
Definition: my_sqlcommand.h:151
@ SQLCOM_SHOW_CREATE_TRIGGER
Definition: my_sqlcommand.h:174
@ SQLCOM_SHOW_ENGINE_MUTEX
Definition: my_sqlcommand.h:66
@ SQLCOM_ALTER_RESOURCE_GROUP
Definition: my_sqlcommand.h:197
@ SQLCOM_ALTER_USER
Definition: my_sqlcommand.h:181
@ SQLCOM_SHOW_PRIVILEGES
Definition: my_sqlcommand.h:129
@ SQLCOM_RELEASE_SAVEPOINT
Definition: my_sqlcommand.h:103
@ SQLCOM_DROP_RESOURCE_GROUP
Definition: my_sqlcommand.h:198
@ SQLCOM_SHOW_BINLOGS
Definition: my_sqlcommand.h:115
@ SQLCOM_SHOW_BINLOG_EVENTS
Definition: my_sqlcommand.h:123
@ 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_LOCK_TABLES
Definition: my_sqlcommand.h:79
@ SQLCOM_LOAD
Definition: my_sqlcommand.h:77
@ SQLCOM_DELETE
Definition: my_sqlcommand.h:54
@ SQLCOM_SET_RESOURCE_GROUP
Definition: my_sqlcommand.h:199
@ SQLCOM_RESIGNAL
Definition: my_sqlcommand.h:178
@ SQLCOM_INSERT
Definition: my_sqlcommand.h:52
@ SQLCOM_SHOW_PROFILE
Definition: my_sqlcommand.h:175
@ SQLCOM_SLAVE_START
Definition: my_sqlcommand.h:104
@ SQLCOM_SHOW_DATABASES
Definition: my_sqlcommand.h:58
@ SQLCOM_ROLLBACK
Definition: my_sqlcommand.h:99
@ SQLCOM_PREPARE
Definition: my_sqlcommand.h:146
@ SQLCOM_DROP_TABLE
Definition: my_sqlcommand.h:56
@ SQLCOM_ALTER_EVENT
Definition: my_sqlcommand.h:170
@ SQLCOM_DROP_SRS
Definition: my_sqlcommand.h:205
@ SQLCOM_ALTER_SERVER
Definition: my_sqlcommand.h:168
@ SQLCOM_LOCK_INSTANCE
Definition: my_sqlcommand.h:201
@ SQLCOM_SHOW_CHARSETS
Definition: my_sqlcommand.h:72
@ SQLCOM_BEGIN
Definition: my_sqlcommand.h:108
@ SQLCOM_CREATE_PROCEDURE
Definition: my_sqlcommand.h:136
@ SQLCOM_SHOW_OPEN_TABLES
Definition: my_sqlcommand.h:116
@ SQLCOM_DROP_SERVER
Definition: my_sqlcommand.h:167
@ SQLCOM_INSERT_SELECT
Definition: my_sqlcommand.h:53
@ SQLCOM_SHOW_TABLE_STATUS
Definition: my_sqlcommand.h:75
@ SQLCOM_INSTALL_PLUGIN
Definition: my_sqlcommand.h:162
@ SQLCOM_ALTER_TABLESPACE
Definition: my_sqlcommand.h:161
@ SQLCOM_SELECT
Definition: my_sqlcommand.h:47
@ SQLCOM_DROP_DB
Definition: my_sqlcommand.h:84
@ SQLCOM_SHOW_ERRORS
Definition: my_sqlcommand.h:127
@ SQLCOM_ASSIGN_TO_KEYCACHE
Definition: my_sqlcommand.h:94
@ SQLCOM_INSTALL_COMPONENT
Definition: my_sqlcommand.h:187
@ SQLCOM_DROP_EVENT
Definition: my_sqlcommand.h:171
@ SQLCOM_DROP_PROCEDURE
Definition: my_sqlcommand.h:139
@ SQLCOM_REVOKE_ROLE
Definition: my_sqlcommand.h:193
@ SQLCOM_REPAIR
Definition: my_sqlcommand.h:86
@ SQLCOM_END
Definition: my_sqlcommand.h:207
@ SQLCOM_SHOW_FIELDS
Definition: my_sqlcommand.h:60
@ SQLCOM_PURGE_BEFORE
Definition: my_sqlcommand.h:114
@ SQLCOM_SHOW_CREATE_USER
Definition: my_sqlcommand.h:183
@ SQLCOM_SHOW_STATUS
Definition: my_sqlcommand.h:63
@ SQLCOM_XA_COMMIT
Definition: my_sqlcommand.h:156
@ SQLCOM_DELETE_MULTI
Definition: my_sqlcommand.h:121
@ SQLCOM_CALL
Definition: my_sqlcommand.h:138
@ SQLCOM_REPLACE
Definition: my_sqlcommand.h:87
@ SQLCOM_CREATE_INDEX
Definition: my_sqlcommand.h:49
@ SQLCOM_DROP_USER
Definition: my_sqlcommand.h:132
@ SQLCOM_UNINSTALL_PLUGIN
Definition: my_sqlcommand.h:163
@ SQLCOM_CREATE_FUNCTION
Definition: my_sqlcommand.h:89
@ SQLCOM_HA_OPEN
Definition: my_sqlcommand.h:117
@ SQLCOM_CREATE_ROLE
Definition: my_sqlcommand.h:189
@ SQLCOM_UNINSTALL_COMPONENT
Definition: my_sqlcommand.h:188
@ SQLCOM_GET_DIAGNOSTICS
Definition: my_sqlcommand.h:180
@ SQLCOM_SHOW_ENGINE_STATUS
Definition: my_sqlcommand.h:65
@ SQLCOM_RENAME_TABLE
Definition: my_sqlcommand.h:111
@ SQLCOM_SHOW_EVENTS
Definition: my_sqlcommand.h:173
@ SQLCOM_SHOW_CREATE_PROC
Definition: my_sqlcommand.h:142
@ SQLCOM_XA_ROLLBACK
Definition: my_sqlcommand.h:157
@ SQLCOM_HA_CLOSE
Definition: my_sqlcommand.h:118
@ SQLCOM_START_GROUP_REPLICATION
Definition: my_sqlcommand.h:106
@ SQLCOM_IMPORT
Definition: my_sqlcommand.h:195
@ SQLCOM_CHANGE_MASTER
Definition: my_sqlcommand.h:109
@ SQLCOM_ALTER_FUNCTION
Definition: my_sqlcommand.h:141
@ SQLCOM_SHOW_COLLATIONS
Definition: my_sqlcommand.h:73
@ SQLCOM_SHUTDOWN
Definition: my_sqlcommand.h:184
@ SQLCOM_CHANGE_DB
Definition: my_sqlcommand.h:82
@ SQLCOM_CREATE_EVENT
Definition: my_sqlcommand.h:169
@ SQLCOM_UNLOCK_INSTANCE
Definition: my_sqlcommand.h:202
@ SQLCOM_SHOW_MASTER_STAT
Definition: my_sqlcommand.h:68
@ SQLCOM_SHOW_PROC_CODE
Definition: my_sqlcommand.h:159
@ SQLCOM_SHOW_FUNC_CODE
Definition: my_sqlcommand.h:160
@ SQLCOM_SAVEPOINT
Definition: my_sqlcommand.h:102
@ SQLCOM_SHOW_KEYS
Definition: my_sqlcommand.h:61
@ SQLCOM_SHOW_SLAVE_STAT
Definition: my_sqlcommand.h:69
@ SQLCOM_ALTER_USER_DEFAULT_ROLE
Definition: my_sqlcommand.h:194
@ SQLCOM_UPDATE_MULTI
Definition: my_sqlcommand.h:122
@ SQLCOM_EXECUTE
Definition: my_sqlcommand.h:147
@ SQLCOM_CREATE_SPFUNCTION
Definition: my_sqlcommand.h:137
@ SQLCOM_FLUSH
Definition: my_sqlcommand.h:96
@ SQLCOM_HELP
Definition: my_sqlcommand.h:130
@ SQLCOM_REVOKE
Definition: my_sqlcommand.h:91
@ SQLCOM_CREATE_RESOURCE_GROUP
Definition: my_sqlcommand.h:196
@ SQLCOM_SHOW_TABLES
Definition: my_sqlcommand.h:59
@ SQLCOM_CHANGE_REPLICATION_FILTER
Definition: my_sqlcommand.h:110
@ SQLCOM_SHOW_VARIABLES
Definition: my_sqlcommand.h:62
@ SQLCOM_CREATE_USER
Definition: my_sqlcommand.h:131
@ SQLCOM_KILL
Definition: my_sqlcommand.h:97
@ SQLCOM_DO
Definition: my_sqlcommand.h:124
@ SQLCOM_XA_RECOVER
Definition: my_sqlcommand.h:158
@ SQLCOM_SHOW_CREATE_EVENT
Definition: my_sqlcommand.h:172
@ SQLCOM_CLONE
Definition: my_sqlcommand.h:200
@ SQLCOM_SET_OPTION
Definition: my_sqlcommand.h:78
@ SQLCOM_DROP_FUNCTION
Definition: my_sqlcommand.h:90
@ SQLCOM_UNLOCK_TABLES
Definition: my_sqlcommand.h:80
@ SQLCOM_ROLLBACK_TO_SAVEPOINT
Definition: my_sqlcommand.h:100
@ SQLCOM_RENAME_USER
Definition: my_sqlcommand.h:133
@ SQLCOM_SET_PASSWORD
Definition: my_sqlcommand.h:185
@ SQLCOM_SHOW_PROCESSLIST
Definition: my_sqlcommand.h:67
@ SQLCOM_PRELOAD_KEYS
Definition: my_sqlcommand.h:95
@ SQLCOM_SHOW_RELAYLOG_EVENTS
Definition: my_sqlcommand.h:179
@ SQLCOM_SLAVE_STOP
Definition: my_sqlcommand.h:105
@ SQLCOM_DROP_TRIGGER
Definition: my_sqlcommand.h:152
@ SQLCOM_SHOW_STORAGE_ENGINES
Definition: my_sqlcommand.h:128
@ SQLCOM_RESET
Definition: my_sqlcommand.h:112
@ SQLCOM_SET_ROLE
Definition: my_sqlcommand.h:191
@ SQLCOM_XA_END
Definition: my_sqlcommand.h:154
@ SQLCOM_CREATE_SERVER
Definition: my_sqlcommand.h:166
@ SQLCOM_EMPTY_QUERY
Definition: my_sqlcommand.h:126
@ SQLCOM_DEALLOCATE_PREPARE
Definition: my_sqlcommand.h:148
@ SQLCOM_DROP_VIEW
Definition: my_sqlcommand.h:150
@ SQLCOM_GRANT
Definition: my_sqlcommand.h:81
@ SQLCOM_REPLACE_SELECT
Definition: my_sqlcommand.h:88
@ SQLCOM_REVOKE_ALL
Definition: my_sqlcommand.h:134
@ SQLCOM_COMMIT
Definition: my_sqlcommand.h:101
@ SQLCOM_SHOW_TRIGGERS
Definition: my_sqlcommand.h:76
@ SQLCOM_SHOW_CREATE
Definition: my_sqlcommand.h:71
@ SQLCOM_SIGNAL
Definition: my_sqlcommand.h:177
@ SQLCOM_CHECKSUM
Definition: my_sqlcommand.h:135
@ SQLCOM_TRUNCATE
Definition: my_sqlcommand.h:55
@ SQLCOM_CREATE_TABLE
Definition: my_sqlcommand.h:48
@ SQLCOM_DROP_INDEX
Definition: my_sqlcommand.h:57
@ SQLCOM_DROP_ROLE
Definition: my_sqlcommand.h:190
@ SQLCOM_GRANT_ROLE
Definition: my_sqlcommand.h:192
@ SQLCOM_STOP_GROUP_REPLICATION
Definition: my_sqlcommand.h:107
@ SQLCOM_XA_START
Definition: my_sqlcommand.h:153
@ SQLCOM_HA_READ
Definition: my_sqlcommand.h:119
@ SQLCOM_ALTER_PROCEDURE
Definition: my_sqlcommand.h:140
@ SQLCOM_SHOW_PROFILES
Definition: my_sqlcommand.h:176
@ SQLCOM_RESTART_SERVER
Definition: my_sqlcommand.h:203
@ SQLCOM_CREATE_VIEW
Definition: my_sqlcommand.h:149
@ SQLCOM_PURGE
Definition: my_sqlcommand.h:113
@ SQLCOM_ANALYZE
Definition: my_sqlcommand.h:98