Skip to content

Commit

Permalink
fixes #755
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpz committed Mar 20, 2019
1 parent aff5053 commit a690558
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -579,12 +579,12 @@ public void visit(BitwiseXor bitwiseXor) {
public void visit(CastExpression cast) {
if (cast.isUseCastKeyword()) {
buffer.append("CAST(");
buffer.append(cast.getLeftExpression());
cast.getLeftExpression().accept(this);
buffer.append(" AS ");
buffer.append(cast.getType());
buffer.append(")");
} else {
buffer.append(cast.getLeftExpression());
cast.getLeftExpression().accept(this);
buffer.append("::");
buffer.append(cast.getType());
}
Expand Down

0 comments on commit a690558

Please sign in to comment.