[#3164] Missing formatting when rendering formatted MERGE statement's SET clause

This commit is contained in:
Lukas Eder 2014-04-08 14:48:30 +02:00
parent 52fbd24e42
commit f7006c7bb1
2 changed files with 5 additions and 1 deletions

View File

@ -1064,6 +1064,7 @@ extends BaseTest<A, AP, B, S, B2S, BS, L, X, DATE, BOOL, D, T, U, UU, I, IPK, T7
.on(TAuthor_LAST_NAME().equal(l))
.whenMatchedThenUpdate()
.set(TAuthor_FIRST_NAME(), "James")
.set(TAuthor_LAST_NAME(), "Dean")
.whenNotMatchedThenInsert()
.set(TAuthor_ID(), 3)
.set(TAuthor_FIRST_NAME(), f)

View File

@ -1164,7 +1164,10 @@ implements
if (matchedUpdate != null) {
context.formatSeparator()
.keyword("when matched then update set").sql(" ")
.visit(matchedUpdate);
.formatIndentStart()
.formatSeparator()
.visit(matchedUpdate)
.formatIndentEnd();
}
context.end(MERGE_SET)