Skip to content

Commit 23ba3b7

Browse files
committed
Add preceding space to closing parenthesis in bulk update value groups without line break
1 parent 4f668da commit 23ba3b7

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/main/kotlin/org/domaframework/doma/intellij/formatter/block/SqlRightPatternBlock.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ open class SqlRightPatternBlock(
8282
val NEW_LINE_EXPECTED_TYPES =
8383
listOf(
8484
SqlUpdateColumnGroupBlock::class,
85-
SqlUpdateValueGroupBlock::class,
8685
SqlCreateTableColumnDefinitionGroupBlock::class,
8786
SqlColumnDefinitionRawGroupBlock::class,
8887
SqlUpdateSetGroupBlock::class,

src/test/testData/sql/formatter/UpdateTupleAssignment.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ UPDATE /*# tableName */
44
, x3
55
/*%for entity : entities */
66
, /*# entity.itemIdentifier */
7-
/*%end*/) = ( /* @userId() */1
7+
/*%end*/)=(/* @userId() */1
88
, x
99
, x + 1
1010
/*%for entity : entities */

src/test/testData/sql/formatter/UpdateTupleAssignment_format.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ UPDATE /*# tableName */
1111
, x + 1
1212
/*%for entity : entities */
1313
, /* entity.value */'abc'
14-
/*%end*/
15-
)
14+
/*%end*/ )
1615
WHERE x = /* reportId */1

0 commit comments

Comments
 (0)