[#5488] Excess newline in formatted SELECT without FROM clause
This commit is contained in:
parent
1b04fb27d7
commit
be5a63cded
@ -99,14 +99,14 @@ class QueryPartList<T extends QueryPart> extends AbstractQueryPart implements Li
|
||||
ctx.sql(separator);
|
||||
|
||||
if (i > 0 || indent)
|
||||
ctx.formatNewLine();
|
||||
ctx.formatSeparator();
|
||||
|
||||
ctx.visit(get(i));
|
||||
separator = ", ";
|
||||
separator = ",";
|
||||
}
|
||||
|
||||
if (indent)
|
||||
ctx.formatIndentEnd().formatNewLine();
|
||||
ctx.formatIndentEnd();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -190,7 +190,7 @@ implements
|
||||
ctx.keyword("with")
|
||||
.sql(' ');
|
||||
|
||||
if (recursive && !asList().contains(ctx.configuration().dialect().family()))
|
||||
if (recursive && !asList().contains(ctx.family()))
|
||||
ctx.keyword("recursive")
|
||||
.sql(' ');
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user