Clone of PhatAC @ https://github.com/floaterxk/PhatAC

my_command.h 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; version 2 of the License.
  5. This program is distributed in the hope that it will be useful,
  6. but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. GNU General Public License for more details.
  9. You should have received a copy of the GNU General Public License
  10. along with this program; if not, write to the Free Software
  11. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
  12. #ifndef _mysql_command_h
  13. #define _mysql_command_h
  14. /**
  15. @enum enum_server_command
  16. @brief You should add new commands to the end of this list, otherwise old
  17. servers won't be able to handle them as 'unsupported'.
  18. */
  19. enum enum_server_command
  20. {
  21. COM_SLEEP,
  22. COM_QUIT,
  23. COM_INIT_DB,
  24. COM_QUERY,
  25. COM_FIELD_LIST,
  26. COM_CREATE_DB,
  27. COM_DROP_DB,
  28. COM_REFRESH,
  29. COM_SHUTDOWN,
  30. COM_STATISTICS,
  31. COM_PROCESS_INFO,
  32. COM_CONNECT,
  33. COM_PROCESS_KILL,
  34. COM_DEBUG,
  35. COM_PING,
  36. COM_TIME,
  37. COM_DELAYED_INSERT,
  38. COM_CHANGE_USER,
  39. COM_BINLOG_DUMP,
  40. COM_TABLE_DUMP,
  41. COM_CONNECT_OUT,
  42. COM_REGISTER_SLAVE,
  43. COM_STMT_PREPARE,
  44. COM_STMT_EXECUTE,
  45. COM_STMT_SEND_LONG_DATA,
  46. COM_STMT_CLOSE,
  47. COM_STMT_RESET,
  48. COM_SET_OPTION,
  49. COM_STMT_FETCH,
  50. COM_DAEMON,
  51. COM_BINLOG_DUMP_GTID,
  52. COM_RESET_CONNECTION,
  53. /* don't forget to update const char *command_name[] in sql_parse.cc */
  54. /* Must be last */
  55. COM_END
  56. };
  57. #endif /* _mysql_command_h */