@@ -40,7 +40,8 @@ public SelectDeParser() {
4040 }
4141
4242 /**
43- * @param expressionVisitor a {@link ExpressionVisitor} to de-parse expressions. It has to share the same<br>
43+ * @param expressionVisitor a {@link ExpressionVisitor} to de-parse expressions. It has to share
44+ * the same<br>
4445 * StringBuilder (buffer parameter) as this object in order to work
4546 * @param buffer the buffer that will be filled with the select
4647 */
@@ -280,7 +281,7 @@ public void visit(PivotXml pivot) {
280281 public void deparseOffset (Offset offset ) {
281282 // OFFSET offset
282283 // or OFFSET offset (ROW | ROWS)
283- if (offset .getOffsetJdbcParameter ()!= null ) {
284+ if (offset .getOffsetJdbcParameter () != null ) {
284285 buffer .append (" OFFSET " ).append (offset .getOffsetJdbcParameter ());
285286 } else if (offset .getOffset () != 0 ) {
286287 buffer .append (" OFFSET " );
@@ -300,7 +301,7 @@ public void deparseFetch(Fetch fetch) {
300301 } else {
301302 buffer .append ("NEXT " );
302303 }
303- if (fetch .getFetchJdbcParameter ()!= null ) {
304+ if (fetch .getFetchJdbcParameter () != null ) {
304305 buffer .append (fetch .getFetchJdbcParameter ().toString ());
305306 } else {
306307 buffer .append (fetch .getRowCount ());
@@ -329,7 +330,7 @@ public void setExpressionVisitor(ExpressionVisitor visitor) {
329330 public void visit (SubJoin subjoin ) {
330331 buffer .append ("(" );
331332 subjoin .getLeft ().accept (this );
332- for (Join join : subjoin .getJoinList ()) {
333+ for (Join join : subjoin .getJoinList ()) {
333334 deparseJoin (join );
334335 }
335336 buffer .append (")" );
@@ -452,4 +453,14 @@ public void visit(AllColumns allColumns) {
452453 public void visit (TableFunction tableFunction ) {
453454 buffer .append (tableFunction .toString ());
454455 }
456+
457+ @ Override
458+ public void visit (ParenthesisFromItem parenthesis ) {
459+ buffer .append ("(" );
460+ parenthesis .getFromItem ().accept (this );
461+ buffer .append (")" );
462+ if (parenthesis .getAlias () != null ) {
463+ buffer .append (parenthesis .getAlias ().toString ());
464+ }
465+ }
455466}
0 commit comments