bug fixed for sql parameterized, for issue #2327

This commit is contained in:
wenshao
2018-02-09 14:27:27 +08:00
parent 2d7b379bb6
commit 84465a0678
2 changed files with 79 additions and 0 deletions
@@ -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));