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