mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for oracle parser. for issue #1808
This commit is contained in:
@@ -29,6 +29,10 @@ public class SQLPartitionByRange extends SQLPartitionBy {
|
||||
// mysql
|
||||
protected SQLExpr expr;
|
||||
|
||||
public SQLPartitionByRange() {
|
||||
|
||||
}
|
||||
|
||||
public List<SQLName> getColumns() {
|
||||
return columns;
|
||||
}
|
||||
|
||||
@@ -3933,9 +3933,11 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
print(')');
|
||||
}
|
||||
|
||||
if (x.getInterval() != null) {
|
||||
print0(ucase ? " INTERVAL " : " interval ");
|
||||
x.getInterval().accept(this);
|
||||
SQLExpr interval = x.getInterval();
|
||||
if (interval != null) {
|
||||
print0(ucase ? " INTERVAL (" : " interval (");
|
||||
interval.accept(this);
|
||||
print(')');
|
||||
}
|
||||
|
||||
printPartitionsCountAndSubPartitions(x);
|
||||
|
||||
Reference in New Issue
Block a user