Skip to content

Commit

Permalink
Inject NULL into database field value when needed instead of "null" s…
Browse files Browse the repository at this point in the history
…tring
  • Loading branch information
e-marchand committed Mar 20, 2024
1 parent eaa033b commit c04f540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/SqlQueryBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class SqlQueryBuilder(entry: Any, private val fields: List<Field>) {
val sortedMap = hashMap.toSortedMap()
var k = 0
for ((_, value) in sortedMap) {
outputEntity[k] = value
outputEntity[k] = if (value == JSONObject.NULL) null else value;
k++
}
return outputEntity
Expand Down

0 comments on commit c04f540

Please sign in to comment.