Skip to content

Commit 59bd776

Browse files
luozejiaqunwojta
authored andcommitted
fix SQLite3Cursor boolean converter
1 parent 5d4fc6d commit 59bd776

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/jsMain/kotlin/cz/sazel/sqldelight/node/sqlite3/SQLite3Cursor.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ internal class SQLite3Cursor(val statementInit: suspend () -> Sqlite3.Statement)
9292
}
9393

9494
override fun getBoolean(index: Int): Boolean? {
95-
checkCursorState()
96-
return row?.get(index) as Boolean?
95+
return getLong(index)?.let { it != 0L }
9796
}
9897
}

0 commit comments

Comments
 (0)