MySQL 8.3.0
Source Code Documentation
my_command.h
Go to the documentation of this file.
1/* Copyright (c) 2015, 2023, 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 also distributed 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 included with MySQL.
13
14Without limiting anything contained in the foregoing, this file,
15which is part of C Driver for MySQL (Connector/C), is also subject to the
16Universal FOSS Exception, version 1.0, a copy of which can be found at
17http://oss.oracle.com/licenses/universal-foss-exception.
18
19This program is distributed in the hope that it will be useful,
20but WITHOUT ANY WARRANTY; without even the implied warranty of
21MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22GNU General Public License, version 2.0, for more details.
23
24You should have received a copy of the GNU General Public License
25along with this program; if not, write to the Free Software
26Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
27
28#ifndef _mysql_command_h
29#define _mysql_command_h
30
31/**
32 @file include/my_command.h
33*/
34
35/**
36 @enum enum_server_command
37
38 @brief A list of all MySQL protocol commands.
39
40 These are the top level commands the server can receive
41 while it listens for a new command in ::dispatch_command
42
43 @par Warning
44 Add new commands to the end of this list, otherwise old
45 servers won't be able to handle them as 'unsupported'.
46*/
48 /**
49 Currently refused by the server. See ::dispatch_command.
50 Also used internally to mark the start of a session.
51 */
53 COM_QUIT, /**< See @ref page_protocol_com_quit */
54 COM_INIT_DB, /**< See @ref page_protocol_com_init_db */
55 COM_QUERY, /**< See @ref page_protocol_com_query */
56 COM_UNUSED_3, /**< Removed, used to be COM_FIELD_LIST */
57 COM_CREATE_DB, /**< Currently refused by the server. See ::dispatch_command */
58 COM_DROP_DB, /**< Currently refused by the server. See ::dispatch_command */
59 COM_UNUSED_2, /**< Removed, used to be COM_REFRESH. */
60 COM_UNUSED_1, /**< Removed, used to be COM_SHUTDOWN */
61 COM_STATISTICS, /**< See @ref page_protocol_com_statistics */
62 COM_UNUSED_4, /**< Removed, used to be COM_PROCESS_INFO */
63 COM_CONNECT, /**< Currently refused by the server. */
64 COM_UNUSED_5, /**< Removed, used to be COM_PROCESS_KILL */
65 COM_DEBUG, /**< See @ref page_protocol_com_debug */
66 COM_PING, /**< See @ref page_protocol_com_ping */
67 COM_TIME, /**< Currently refused by the server. */
68 COM_DELAYED_INSERT, /**< Functionality removed. */
69 COM_CHANGE_USER, /**< See @ref page_protocol_com_change_user */
70 COM_BINLOG_DUMP, /**< See @ref page_protocol_com_binlog_dump */
74 COM_STMT_PREPARE, /**< See @ref page_protocol_com_stmt_prepare */
75 COM_STMT_EXECUTE, /**< See @ref page_protocol_com_stmt_execute */
76 /** See @ref page_protocol_com_stmt_send_long_data */
78 COM_STMT_CLOSE, /**< See @ref page_protocol_com_stmt_close */
79 COM_STMT_RESET, /**< See @ref page_protocol_com_stmt_reset */
80 COM_SET_OPTION, /**< See @ref page_protocol_com_set_option */
81 COM_STMT_FETCH, /**< See @ref page_protocol_com_stmt_fetch */
82 /**
83 Currently refused by the server. See ::dispatch_command.
84 Also used internally to mark the session as a "daemon",
85 i.e. non-client THD. Currently the scheduler and the GTID
86 code does use this state.
87 These threads won't be killed by `KILL`
88
89 @sa Event_scheduler::start, ::init_thd, ::kill_one_thread,
90 ::Find_thd_with_id
91 */
94 COM_RESET_CONNECTION, /**< See @ref page_protocol_com_reset_connection */
97 /* don't forget to update const char *command_name[] in sql_parse.cc */
98
99 /* Must be last */
100 COM_END /**< Not a real command. Refused. */
102
103#endif /* _mysql_command_h */
enum_server_command
A list of all MySQL protocol commands.
Definition: my_command.h:47
@ COM_STMT_FETCH
See COM_STMT_FETCH.
Definition: my_command.h:81
@ COM_CONNECT_OUT
Definition: my_command.h:72
@ COM_CONNECT
Currently refused by the server.
Definition: my_command.h:63
@ COM_DEBUG
See COM_DEBUG.
Definition: my_command.h:65
@ COM_UNUSED_2
Removed, used to be COM_REFRESH.
Definition: my_command.h:59
@ COM_QUIT
See COM_QUIT.
Definition: my_command.h:53
@ COM_STMT_EXECUTE
See COM_STMT_EXECUTE.
Definition: my_command.h:75
@ COM_PING
See COM_PING.
Definition: my_command.h:66
@ COM_DROP_DB
Currently refused by the server.
Definition: my_command.h:58
@ COM_DAEMON
Currently refused by the server.
Definition: my_command.h:92
@ COM_END
Not a real command.
Definition: my_command.h:100
@ COM_SET_OPTION
See COM_SET_OPTION.
Definition: my_command.h:80
@ COM_BINLOG_DUMP_GTID
Definition: my_command.h:93
@ COM_STMT_PREPARE
See COM_STMT_PREPARE.
Definition: my_command.h:74
@ COM_DELAYED_INSERT
Functionality removed.
Definition: my_command.h:68
@ COM_STATISTICS
See COM_STATISTICS.
Definition: my_command.h:61
@ COM_QUERY
See COM_QUERY.
Definition: my_command.h:55
@ COM_CLONE
Definition: my_command.h:95
@ COM_TABLE_DUMP
Definition: my_command.h:71
@ COM_CREATE_DB
Currently refused by the server.
Definition: my_command.h:57
@ COM_STMT_RESET
See COM_STMT_RESET.
Definition: my_command.h:79
@ COM_RESET_CONNECTION
See COM_RESET_CONNECTION.
Definition: my_command.h:94
@ COM_STMT_SEND_LONG_DATA
See COM_STMT_SEND_LONG_DATA.
Definition: my_command.h:77
@ COM_TIME
Currently refused by the server.
Definition: my_command.h:67
@ COM_UNUSED_5
Removed, used to be COM_PROCESS_KILL.
Definition: my_command.h:64
@ COM_SUBSCRIBE_GROUP_REPLICATION_STREAM
Definition: my_command.h:96
@ COM_REGISTER_SLAVE
Definition: my_command.h:73
@ COM_UNUSED_3
Removed, used to be COM_FIELD_LIST.
Definition: my_command.h:56
@ COM_STMT_CLOSE
See COM_STMT_CLOSE.
Definition: my_command.h:78
@ COM_SLEEP
Currently refused by the server.
Definition: my_command.h:52
@ COM_UNUSED_4
Removed, used to be COM_PROCESS_INFO.
Definition: my_command.h:62
@ COM_BINLOG_DUMP
See COM_BINLOG_DUMP.
Definition: my_command.h:70
@ COM_UNUSED_1
Removed, used to be COM_SHUTDOWN.
Definition: my_command.h:60
@ COM_INIT_DB
See COM_INIT_DB.
Definition: my_command.h:54
@ COM_CHANGE_USER
See COM_CHANGE_USER.
Definition: my_command.h:69