bug fixed for refactor

This commit is contained in:
温少
2012-05-20 15:37:29 +08:00
15 changed files with 67 additions and 33 deletions
@@ -184,6 +184,13 @@ public class SQLStatementParser extends SQLParser {
statementList.add(stmt);
continue;
}
if (identifierEquals("COMMIT")) {
SQLStatement stmt = parseCommit();
statementList.add(stmt);
continue;
}
if (lexer.token() == Token.LPAREN) {
char mark_ch = lexer.current();
@@ -225,6 +232,10 @@ public class SQLStatementParser extends SQLParser {
}
return stmt;
}
public SQLStatement parseCommit() {
throw new ParserException("TODO " + lexer.token() + " " + lexer.stringVal());
}
public SQLUseStatement parseUse() {
accept(Token.USE);