diff options
author | serg@serg.mysql.com <> | 2002-11-29 14:20:25 +0100 |
---|---|---|
committer | serg@serg.mysql.com <> | 2002-11-29 14:20:25 +0100 |
commit | c28e99c65aceed372328e3b49e7a601ee4bec19c (patch) | |
tree | efa3840847b84d55dedc253a085af98f5771deab /sql/sql_lex.h | |
parent | 409f7af3cf7721d7400fb17f9731f26e2e6a6aa0 (diff) | |
download | mariadb-git-c28e99c65aceed372328e3b49e7a601ee4bec19c.tar.gz |
added missing Com_xxx status variables
moved SQLCOM_END to the end of the list
bad copy-paste in sql_yacc.yy fixed
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index f4475b26a0a..453728bfc0e 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -37,6 +37,11 @@ class LEX_COLUMN; #define LEX_YYSTYPE YYSTYPE * #endif +/* + When a command is added here, be sure it's also added in mysqld.cc + in "struct show_var_st status_vars[]= {" ... +*/ + enum enum_sql_command { SQLCOM_SELECT, SQLCOM_CREATE_TABLE, SQLCOM_CREATE_INDEX, SQLCOM_ALTER_TABLE, SQLCOM_UPDATE, SQLCOM_INSERT, SQLCOM_INSERT_SELECT, @@ -66,7 +71,10 @@ enum enum_sql_command { SQLCOM_SHOW_BINLOG_EVENTS, SQLCOM_SHOW_NEW_MASTER, SQLCOM_DO, SQLCOM_SHOW_WARNS, SQLCOM_EMPTY_QUERY, SQLCOM_SHOW_ERRORS, SQLCOM_SHOW_COLUMN_TYPES, SQLCOM_SHOW_TABLE_TYPES, SQLCOM_SHOW_PRIVILEGES, - SQLCOM_END, SQLCOM_HELP + SQLCOM_HELP, + + /* This should be the last !!! */ + SQLCOM_END }; enum lex_states |