1 | /* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
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 | Without limiting anything contained in the foregoing, this file, |
15 | which is part of C Driver for MySQL (Connector/C), is also subject to the |
16 | Universal FOSS Exception, version 1.0, a copy of which can be found at |
17 | http://oss.oracle.com/licenses/universal-foss-exception. |
18 | |
19 | This program is distributed in the hope that it will be useful, |
20 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22 | GNU General Public License, version 2.0, for more details. |
23 | |
24 | You should have received a copy of the GNU General Public License |
25 | along with this program; if not, write to the Free Software |
26 | Foundation, 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 | @enum enum_server_command |
33 | @brief You should add new commands to the end of this list, otherwise old |
34 | servers won't be able to handle them as 'unsupported'. |
35 | */ |
36 | enum enum_server_command |
37 | { |
38 | COM_SLEEP, |
39 | COM_QUIT, |
40 | COM_INIT_DB, |
41 | COM_QUERY, |
42 | COM_FIELD_LIST, |
43 | COM_CREATE_DB, |
44 | COM_DROP_DB, |
45 | COM_REFRESH, |
46 | COM_SHUTDOWN, |
47 | COM_STATISTICS, |
48 | COM_PROCESS_INFO, |
49 | COM_CONNECT, |
50 | COM_PROCESS_KILL, |
51 | COM_DEBUG, |
52 | COM_PING, |
53 | COM_TIME, |
54 | COM_DELAYED_INSERT, |
55 | COM_CHANGE_USER, |
56 | COM_BINLOG_DUMP, |
57 | COM_TABLE_DUMP, |
58 | COM_CONNECT_OUT, |
59 | COM_REGISTER_SLAVE, |
60 | COM_STMT_PREPARE, |
61 | COM_STMT_EXECUTE, |
62 | COM_STMT_SEND_LONG_DATA, |
63 | COM_STMT_CLOSE, |
64 | COM_STMT_RESET, |
65 | COM_SET_OPTION, |
66 | COM_STMT_FETCH, |
67 | COM_DAEMON, |
68 | COM_BINLOG_DUMP_GTID, |
69 | COM_RESET_CONNECTION, |
70 | /* don't forget to update const char *command_name[] in sql_parse.cc */ |
71 | |
72 | /* Must be last */ |
73 | COM_END |
74 | }; |
75 | |
76 | #endif /* _mysql_command_h */ |
77 | |