support pgsql truncate statement

This commit is contained in:
温少
2012-02-22 20:02:23 +08:00
parent c9db35f1af
commit a6ba872902
19 changed files with 636 additions and 323 deletions
@@ -116,6 +116,12 @@ public class SQLStatementParser extends SQLParser {
continue;
}
}
if (lexer.token() == Token.TRUNCATE) {
SQLStatement stmt = parseTruncate();
statementList.add(stmt);
continue;
}
if (identifierEquals("CALL")) {
SQLCallStatement stmt = parseCall();
@@ -130,6 +136,10 @@ public class SQLStatementParser extends SQLParser {
throw new ParserException("TODO " + lexer.token());
}
}
public SQLStatement parseTruncate() {
throw new ParserException("TODO " + lexer.token());
}
public SQLStatement parseInsert() {
accept(Token.INSERT);