Skip to content

Commit

Permalink
optReference column should allow update { it[column] = nullableValue }
Browse files Browse the repository at this point in the history
…#1275 / Fix test on SQLServer
  • Loading branch information
Tapac committed Dec 5, 2021
1 parent 5f6b27c commit c552deb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,13 @@ class InsertTests : DatabaseTestsBase() {
val boardId = EntityTests.Boards.insertAndGetId {
it[name] = UUID.randomUUID().toString()
}
val categoryId = EntityTests.Categories.insert {
it[title] = "Category"
}[EntityTests.Categories.uniqueId]

val id2 = EntityTests.Posts.insertAndGetId {
it[board] = Op.nullOp()
it[category] = null
it[category] = categoryId
it[board] = boardId.value
}
}
Expand Down

0 comments on commit c552deb

Please sign in to comment.