Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Heromyth committed Oct 9, 2019
1 parent 6270bf6 commit 174e247
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/hunt/sql/visitor/SQLASTOutputVisitor.d
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ public class SQLASTOutputVisitor : SQLASTVisitorAdapter , ParameterizedVisitor,
}

try {
version(HUNT_ENTITY_DEBUG_MORE) tracef("Appending: %s", value);
this.appender.append(value);
} catch (Exception e) {
throw new Exception("print error", e);
Expand All @@ -299,6 +300,8 @@ public class SQLASTOutputVisitor : SQLASTVisitorAdapter , ParameterizedVisitor,
return;
}

version(HUNT_ENTITY_DEBUG_MORE) tracef("Appending: %s", value);

if (cast(StringBuffer)appender !is null) {
(cast(StringBuffer) appender).append(value);
} else if (cast(StringBuilder)appender !is null) {
Expand Down Expand Up @@ -1608,7 +1611,7 @@ public class SQLASTOutputVisitor : SQLASTVisitorAdapter , ParameterizedVisitor,

print(')');

if (!DBType.POSTGRESQL.opEquals(dbType)) {
if (DBType.POSTGRESQL != dbType) {
SQLOrderBy withGroup = x.getWithinGroup();
if (withGroup !is null) {
print0(ucase ? " WITHIN GROUP (" : " within group (");
Expand Down

0 comments on commit 174e247

Please sign in to comment.