[#4295] Common Table Expression declarations don't set the Context.subquery() flag
This commit is contained in:
parent
0a6596abc5
commit
1b5cc6d638
@ -94,15 +94,19 @@ class CommonTableExpressionImpl<R extends Record> extends AbstractTable<R> imple
|
||||
@Override
|
||||
public final void accept(Context<?> ctx) {
|
||||
if (ctx.declareCTE()) {
|
||||
boolean subquery = ctx.subquery();
|
||||
|
||||
ctx.visit(name)
|
||||
.sql(' ')
|
||||
.keyword("as")
|
||||
.sql(" (")
|
||||
.subquery(true)
|
||||
.formatIndentStart()
|
||||
.formatNewLine()
|
||||
.visit(select)
|
||||
.formatIndentEnd()
|
||||
.formatNewLine()
|
||||
.subquery(subquery)
|
||||
.sql(')');
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user