mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for sql parameterized, for issue #2327
This commit is contained in:
@@ -4352,6 +4352,10 @@ public class SQLASTOutputVisitor extends SQLASTVisitorAdapter implements Paramet
|
||||
}
|
||||
|
||||
public void printComment(String comment) {
|
||||
if (comment == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (comment.startsWith("--") && comment.length() > 2 && comment.charAt(2) != ' ') {
|
||||
print0("-- ");
|
||||
print0(comment.substring(2));
|
||||
|
||||
Reference in New Issue
Block a user