Skip to content

Commit cd8c6ae

Browse files
committed
AI feedback
1 parent 3c3b38c commit cd8c6ae

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

integrations/room/src/commonIntegrationTest/kotlin/com/powersync/integrations/room/PowerSyncRoomTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class PowerSyncRoomTest {
155155
// After inserting into a virtual table, we should not report shadow tables as updates to
156156
// Room as that causes a crash. This also means that virtual table updates can't be watched
157157
// from Room, but that's a Room limitation.
158-
powersync.execute("INSERT into users_fts(id, name) VAlUES (uuid(), ?)", listOf("test name"))
158+
powersync.execute("INSERT into users_fts(id, name) VALUES (uuid(), ?)", listOf("test name"))
159159
}
160160

161161
companion object {

integrations/room/src/commonMain/kotlin/com/powersync/integrations/room/RoomConnectionPool.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public class RoomConnectionPool(
115115
it.usePrepared(statement) { stmt ->
116116
while (stmt.step()) {
117117
val table = stmt.getText(0)
118-
val type = stmt.getText(1)
118+
val type = if (stmt.isNull(1)) null else stmt.getText(1)
119119
allChangedTables.add(table)
120120
if (type == "table" && !table.startsWith("ps_") && !table.startsWith("room_")) {
121121
changedRoomTables.add(table)

0 commit comments

Comments
 (0)