refactor sql parser, support open/close statement

This commit is contained in:
高铁
2015-09-19 13:20:14 +08:00
parent 03c5436d8c
commit 12bef9bb54
23 changed files with 172 additions and 357 deletions
@@ -99,7 +99,7 @@ public class SQLServerSelectParser extends SQLSelectParser {
acceptIdentifier("ROWS");
select.setOffset(offset);
if (identifierEquals("FETCH")) {
if (lexer.token() == Token.FETCH) {
lexer.nextToken();
acceptIdentifier("NEXT");