Fix sharding compilation problems

This commit is contained in:
lazio579 2018-12-07 09:31:37 +08:00
parent a3f8e64a47
commit 4f7a1f2188
2 changed files with 57 additions and 42 deletions

View File

@ -225,14 +225,14 @@ HEX_DIGIT [0-9a-fA-F]
"UNSIGNED" return TK_UNSIGNED; "UNSIGNED" return TK_UNSIGNED;
"DECIMAL" return TK_DECIMAL; "DECIMAL" return TK_DECIMAL;
"BINARY" return TK_BINARY; "BINARY" return TK_BINARY;
"FLUSH" return TK_FLUSH;
"NO_WRITE_TO_BINLOG" return TK_NO_WRITE_TO_BINLOG;
"NCHAR" return TK_NCHAR; "NCHAR" return TK_NCHAR;
"INT" return TK_INT_SYM; "INT" return TK_INT_SYM;
"ESCAPE" return TK_ESCAPE; "ESCAPE" return TK_ESCAPE;
"CETUS_SEQUENCE" return TK_CETUS_SEQUENCE; "CETUS_SEQUENCE" return TK_CETUS_SEQUENCE;
"CETUS_VERSION" return TK_CETUS_VERSION; "CETUS_VERSION" return TK_CETUS_VERSION;
"WARNINGS" return TK_WARNINGS; "WARNINGS" return TK_WARNINGS;
"FLUSH" return TK_FLUSH;
"NO_WRITE_TO_BINLOG" return TK_NO_WRITE_TO_BINLOG;
"_binary" return TK_UNDERSCORE_CHARSET; "_binary" return TK_UNDERSCORE_CHARSET;
"_latin1" return TK_UNDERSCORE_CHARSET; "_latin1" return TK_UNDERSCORE_CHARSET;
"_utf8" return TK_UNDERSCORE_CHARSET; "_utf8" return TK_UNDERSCORE_CHARSET;

View File

@ -1351,3 +1351,18 @@ precision ::= LP INTEGER COMMA INTEGER RP.
field_length ::= LP INTEGER RP. field_length ::= LP INTEGER RP.
opt_field_length ::= . opt_field_length ::= .
opt_field_length ::= field_length. opt_field_length ::= field_length.
///////////////////////FLUSH TABLES///////////////////////////
cmd ::=FLUSH flush_tables. {
sql_context_set_error(context, PARSE_NOT_SUPPORT,
"(cetus) FLUSH TABLES not supported");
}
flush_tables ::= tables_option.
flush_tables ::= LOCAL tables_option.
flush_tables ::= NO_WRITE_TO_BINLOG tables_option.
tables_option ::= TABLES WITH READ LOCK.
tables_option ::= TABLES tbl_list WITH READ LOCK.
tables_option ::= TABLE WITH READ LOCK.
tables_option ::= TABLE tbl_list WITH READ LOCK.
tbl_list ::= fullname.
tbl_list ::= tbl_list COMMA fullname.