[jOOQ/jOOQ#9193] Consecutive RenderContext.formatSeparator() calls ignored when formatIndentStart() is called in between

This commit is contained in:
Lukas Eder 2019-09-11 16:34:59 +02:00
parent 8f9e089351
commit 8449e46fdd

View File

@ -465,9 +465,14 @@ class DefaultRenderContext extends AbstractContext<RenderContext> implements Ren
@Override
public final RenderContext formatIndentStart(int i) {
if (cachedRenderFormatted)
if (cachedRenderFormatted) {
indent += i;
// [#9193] If we've already generated the separator (and indentation)
if (newline)
sql.append(cachedIndentation);
}
return this;
}