We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5031b4 + 674974a commit 31adc35Copy full SHA for 31adc35
src/main/java/net/sf/jsqlparser/util/deparser/StatementDeParser.java
@@ -111,7 +111,10 @@ public void visit(Select select) {
111
buffer.append("WITH ");
112
for (Iterator<WithItem> iter = select.getWithItemsList().iterator(); iter.hasNext();) {
113
WithItem withItem = iter.next();
114
- buffer.append(withItem);
+ buffer.append(withItem.getName());
115
+ buffer.append(" AS (");
116
+ withItem.getSelectBody().accept(selectDeParser);
117
+ buffer.append(")");
118
if (iter.hasNext()) {
119
buffer.append(",");
120
}
0 commit comments