improved oracle parser.

This commit is contained in:
wenshao
2018-05-05 16:36:08 +08:00
parent 85da7cb9d5
commit 7de08da610
3 changed files with 75 additions and 0 deletions
@@ -45,6 +45,10 @@ public abstract class SQLStatementImpl extends SQLObjectImpl implements SQLState
return SQLUtils.toSQLString(this, dbType);
}
public String toLowerCaseString() {
return SQLUtils.toSQLString(this, dbType, SQLUtils.DEFAULT_LCASE_FORMAT_OPTION);
}
@Override
protected void accept0(SQLASTVisitor visitor) {
throw new UnsupportedOperationException(this.getClass().getName());
@@ -996,6 +996,7 @@ public class SQLSelectParser extends SQLParser {
if (lexer.token == Token.FETCH) {
lexer.nextToken();
if (lexer.token == Token.FIRST
|| lexer.token == Token.NEXT
|| lexer.identifierEquals(FnvHash.Constants.NEXT)) {
lexer.nextToken();
} else {