Skip to content

Commit

Permalink
Update NativeDatabase.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
nbransby authored Oct 17, 2023
1 parent 34514b4 commit e68478b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal class NativeDatabase private constructor(val dbPointer: CPointer<sqlite
}
val openResult = sqlite3_open_v2(realPath, dbPtr.ptr, sqliteFlags, null)
if (openResult != SQLITE_OK) {
throw sqliteException(sqlite3_errmsg(dbPtr.value)?.toKString() ?: "", openResult)
throw sqliteException(sqlite3_errmsg(dbPtr.value)?.toKString() ?: "", openResult)
}
dbPtr.value!!
}
Expand Down

0 comments on commit e68478b

Please sign in to comment.