mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved oracle sql parser support CreateSequence. issue #1923
This commit is contained in:
@@ -4444,14 +4444,30 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
}
|
||||
}
|
||||
|
||||
if (x.getCache() != null) {
|
||||
if (x.getCache().booleanValue()) {
|
||||
Boolean cache = x.getCache();
|
||||
if (cache != null) {
|
||||
if (cache.booleanValue()) {
|
||||
print0(ucase ? " CACHE" : " cache");
|
||||
|
||||
SQLExpr cacheValue = x.getCacheValue();
|
||||
if (cacheValue != null) {
|
||||
print(' ');
|
||||
cacheValue.accept(this);
|
||||
}
|
||||
} else {
|
||||
print0(ucase ? " NOCACHE" : " nocache");
|
||||
}
|
||||
}
|
||||
|
||||
Boolean order = x.getOrder();
|
||||
if (order != null) {
|
||||
if (order.booleanValue()) {
|
||||
print0(ucase ? " ORDER" : " order");
|
||||
} else {
|
||||
print0(ucase ? " NOORDER" : " noorder");
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user