File tree 1 file changed +10
-7
lines changed
src/main/java/net/sf/jsqlparser/util/deparser
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -1169,9 +1169,9 @@ public void visit(AllValue allValue) {
1169
1169
1170
1170
@ Override
1171
1171
public void visit (IsDistinctExpression isDistinctExpression ) {
1172
- buffer .append (isDistinctExpression .getLeftExpression ()
1173
- + isDistinctExpression .getStringExpression ()
1174
- + isDistinctExpression .getRightExpression ());
1172
+ buffer .append (isDistinctExpression .getLeftExpression ())
1173
+ . append ( isDistinctExpression .getStringExpression () )
1174
+ . append ( isDistinctExpression .getRightExpression ());
1175
1175
}
1176
1176
1177
1177
@ Override
@@ -1226,8 +1226,8 @@ public void visit(StructType structType) {
1226
1226
buffer .append ("," );
1227
1227
}
1228
1228
buffer .append (e .getAlias ().getName ());
1229
- buffer .append (": " );
1230
- buffer . append ( e .getExpression ());
1229
+ buffer .append (" : " );
1230
+ e .getExpression (). accept ( this );
1231
1231
}
1232
1232
buffer .append (" }" );
1233
1233
} else {
@@ -1237,9 +1237,12 @@ public void visit(StructType structType) {
1237
1237
if (0 < i ++) {
1238
1238
buffer .append ("," );
1239
1239
}
1240
- e .appendTo (buffer );
1240
+ e .getExpression ().accept (this );
1241
+ if (e .getAlias () != null ) {
1242
+ buffer .append (" as " );
1243
+ buffer .append (e .getAlias ().getName ());
1244
+ }
1241
1245
}
1242
-
1243
1246
buffer .append (")" );
1244
1247
}
1245
1248
}
You can’t perform that action at this time.
0 commit comments