[#161] Add runtime configuration to pretty print rendered SQL - minor fix

This commit is contained in:
Lukas Eder 2012-03-02 14:58:50 +00:00
parent b1fd8f8989
commit df9f495226
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

@ -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);
}