sql server parser

This commit is contained in:
温少
2012-03-18 01:46:15 +08:00
parent cbaa488225
commit 09be39c326
10 changed files with 112 additions and 0 deletions
@@ -134,6 +134,12 @@ public class SQLStatementParser extends SQLParser {
statementList.add(stmt);
continue;
}
if (lexer.token() == Token.USE) {
SQLStatement stmt = parseUse();
statementList.add(stmt);
continue;
}
if (identifierEquals("CALL")) {
SQLCallStatement stmt = parseCall();
@@ -148,6 +154,10 @@ public class SQLStatementParser extends SQLParser {
throw new ParserException("TODO " + lexer.token());
}
}
public SQLStatement parseUse() {
throw new ParserException("TODO " + lexer.token());
}
protected SQLDropTableStatement parseDropTable(boolean acceptDrop) {
if (acceptDrop) {