We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7a938c commit 2114633Copy full SHA for 2114633
core/src/commonIntegrationTest/kotlin/com/powersync/CrudTest.kt
@@ -125,7 +125,7 @@ class CrudTest {
125
)
126
}
127
128
- val batch = database.getNextCrudTransaction()!!
+ var batch = database.getNextCrudTransaction()!!
129
batch.crud[0].data shouldBe
130
mapOf(
131
"a" to "text",
@@ -144,5 +144,17 @@ class CrudTest {
144
145
"b" to 42,
146
147
+
148
+ database.execute("DELETE FROM ps_crud")
149
+ database.execute(
150
+ "UPDATE foo SET a = ?",
151
+ listOf("42"),
152
+ )
153
154
+ batch = database.getNextCrudTransaction()!!
155
+ batch.crud[0].data shouldBe
156
+ mapOf(
157
+ "a" to "42", // Not an integer!
158
159
160
0 commit comments