File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
commonIntegrationTest/kotlin/com/powersync
commonMain/kotlin/com/powersync/db/crud Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 66 to upload multiple transactions in a batch.
77* Fix modifying severity of the global Kermit logger
88* Add ` PowerSync ` tag for the logs
9+ * Fix ` null ` values in CRUD entries being reported as ` "null" ` strings.
910* [ INTERNAL] Added helpers for Swift read and write lock exception handling.
1011
1112## 1.4.0
Original file line number Diff line number Diff line change @@ -134,6 +134,10 @@ class CrudTest {
134134 )
135135 batch.crud[0 ].previousValues shouldBe null
136136
137+ batch.crud[1 ].opData shouldBe mapOf (
138+ " a" to " te\" xt" ,
139+ " b" to null ,
140+ )
137141 batch.crud[1 ].opData?.typed shouldBe
138142 mapOf (
139143 " a" to " te\" xt" ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import kotlinx.serialization.json.JsonElement
44import kotlinx.serialization.json.JsonNull
55import kotlinx.serialization.json.JsonObject
66import kotlinx.serialization.json.JsonPrimitive
7+ import kotlinx.serialization.json.contentOrNull
78import kotlinx.serialization.json.jsonPrimitive
89import kotlin.experimental.ExperimentalObjCRefinement
910import kotlin.native.HiddenFromObjC
@@ -47,11 +48,11 @@ internal class SerializedRow(
4748
4849private data class ToStringEntry (
4950 val inner : Map .Entry <String , JsonElement >,
50- ) : Map.Entry<String, String> {
51+ ) : Map.Entry<String, String? > {
5152 override val key: String
5253 get() = inner.key
53- override val value: String
54- get() = inner.value.jsonPrimitive.content
54+ override val value: String?
55+ get() = inner.value.jsonPrimitive.contentOrNull
5556}
5657
5758private class TypedRow (
You can’t perform that action at this time.
0 commit comments