[#161] Add runtime configuration to pretty print rendered SQL - minor fix
This commit is contained in:
parent
b1fd8f8989
commit
df9f495226
@ -124,7 +124,7 @@ class CaseConditionStepImpl<T> extends AbstractField<T> implements CaseCondition
|
||||
int size = conditions.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
if (i > 0) {
|
||||
context.formatSeparator();
|
||||
context.formatNewLine();
|
||||
}
|
||||
|
||||
context.keyword(" when ")
|
||||
@ -134,7 +134,7 @@ class CaseConditionStepImpl<T> extends AbstractField<T> implements CaseCondition
|
||||
}
|
||||
|
||||
if (otherwise != null) {
|
||||
context.formatSeparator()
|
||||
context.formatNewLine()
|
||||
.keyword(" else ")
|
||||
.sql(otherwise);
|
||||
}
|
||||
|
||||
@ -161,7 +161,7 @@ class CaseWhenStepImpl<V, T> extends AbstractField<T> implements CaseWhenStep<V,
|
||||
|
||||
for (int i = 0; i < size; i++) {
|
||||
if (i > 0) {
|
||||
context.formatSeparator();
|
||||
context.formatNewLine();
|
||||
}
|
||||
|
||||
context.keyword(" when ");
|
||||
@ -180,7 +180,7 @@ class CaseWhenStepImpl<V, T> extends AbstractField<T> implements CaseWhenStep<V,
|
||||
|
||||
for (int i = 0; i < size; i++) {
|
||||
if (i > 0) {
|
||||
context.formatSeparator();
|
||||
context.formatNewLine();
|
||||
}
|
||||
|
||||
context.keyword(" when ");
|
||||
@ -194,7 +194,7 @@ class CaseWhenStepImpl<V, T> extends AbstractField<T> implements CaseWhenStep<V,
|
||||
}
|
||||
|
||||
if (otherwise != null) {
|
||||
context.formatSeparator()
|
||||
context.formatNewLine()
|
||||
.keyword(" else ")
|
||||
.sql(otherwise);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user