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