mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved pg sql parser. for issue #2390
This commit is contained in:
@@ -6300,4 +6300,11 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean visit(SQLValuesExpr x) {
|
||||
print0(ucase ? "VALUES (" : "values (");
|
||||
printAndAccept(x.getValues(), ", ");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -826,4 +826,7 @@ public interface SQLASTVisitor {
|
||||
|
||||
boolean visit(SQLAlterTableExchangePartition x);
|
||||
void endVisit(SQLAlterTableExchangePartition x);
|
||||
|
||||
boolean visit(SQLValuesExpr x);
|
||||
void endVisit(SQLValuesExpr x);
|
||||
}
|
||||
|
||||
@@ -1954,6 +1954,16 @@ public class SQLASTVisitorAdapter implements SQLASTVisitor {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean visit(SQLValuesExpr x) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void endVisit(SQLValuesExpr x) {
|
||||
|
||||
}
|
||||
|
||||
public final boolean isEnabled(VisitorFeature feature) {
|
||||
return VisitorFeature.isEnabled(this.features, feature);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user