sql parser refactor

This commit is contained in:
温少
2012-06-02 20:02:30 +08:00
parent 3e68ac4161
commit 885d3c37ab
8 changed files with 97 additions and 351 deletions
@@ -801,7 +801,7 @@ public class MySqlStatementParser extends SQLStatementParser {
if (lexer.token() == Token.CREATE) {
lexer.nextToken();
if (identifierEquals("DATABASE")) {
if (lexer.token() == Token.DATABASE) {
lexer.nextToken();
MySqlShowCreateDatabaseStatement stmt = new MySqlShowCreateDatabaseStatement();