mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
@@ -592,7 +592,7 @@ public class MySqlOutputVisitor extends SQLASTOutputVisitor implements MySqlASTV
|
||||
|
||||
String text = x.getText();
|
||||
text = text.replaceAll("'", "''");
|
||||
text = text.replaceAll("\\\\", "\\\\");
|
||||
text = text.replace("\\", "\\\\");
|
||||
|
||||
print(text);
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@ public class PGOutputVisitor extends SQLASTOutputVisitor implements PGASTVisitor
|
||||
} else if (SQLSetQuantifier.DISTINCT == x.getDistionOption()) {
|
||||
print("DISTINCT ");
|
||||
|
||||
if (x.getDistinctOn() != null) {
|
||||
if (x.getDistinctOn() != null && x.getDistinctOn().size() > 0) {
|
||||
print("ON ");
|
||||
printAndAccept(x.getDistinctOn(), ", ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user