mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for sql parser.
This commit is contained in:
@@ -816,6 +816,10 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
if (parent instanceof ValuesClause) {
|
||||
print('?');
|
||||
incrementReplaceCunt();
|
||||
|
||||
if(this instanceof ExportParameterVisitor || this.parameters != null){
|
||||
this.getParameters().add(null);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -830,7 +834,7 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
print('?');
|
||||
incrementReplaceCunt();
|
||||
|
||||
if(this instanceof ExportParameterVisitor) {
|
||||
if(this instanceof ExportParameterVisitor || this.parameters != null){
|
||||
ExportParameterVisitorUtils.exportParameter((this).getParameters(), x);
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user