improved oracle sql parser support CreateSequence. issue #1923

This commit is contained in:
wenshao
2017-08-20 05:48:32 +08:00
parent bc13ef1f43
commit 7e7ccc11c5
6 changed files with 232 additions and 2 deletions
@@ -2159,11 +2159,23 @@ public class OracleStatementParser extends SQLStatementParser {
} else if (lexer.token() == Token.CACHE) {
lexer.nextToken();
stmt.setCache(Boolean.TRUE);
if (lexer.token() == Token.LITERAL_INT) {
stmt.setCacheValue(this.exprParser.primary());
}
continue;
} else if (lexer.token() == Token.NOCACHE) {
lexer.nextToken();
stmt.setCache(Boolean.FALSE);
continue;
} else if (lexer.token() == Token.ORDER) {
lexer.nextToken();
stmt.setOrder(Boolean.TRUE);
continue;
} else if (identifierEquals("NOORDER")) {
lexer.nextToken();
stmt.setOrder(Boolean.FALSE);
continue;
} else if (identifierEquals("CYCLE")) {
lexer.nextToken();
stmt.setCycle(Boolean.TRUE);