sqlite crashes when closing the database
A change was made in the last CL to ask sqlite for all unfinalized statements and then finalizing them before closing the database. But this crashes sqlite! because sqlite's FTS3 module keeps some prepared statements around and they should not be finalized before closing the database. (when sqlite is asked for all unfianlized statements, it also returns the FTS3's reserved prepared statements which should not be finalized!!) Change-Id: I141ab4563985b8cd1305a1228c4cb01bc7281bcb
This commit is contained in:
@@ -926,6 +926,8 @@ public class SQLiteDatabase extends SQLiteClosable {
|
||||
lock();
|
||||
try {
|
||||
closeClosable();
|
||||
// finalize ALL statements queued up so far
|
||||
closePendingStatements();
|
||||
// close this database instance - regardless of its reference count value
|
||||
onAllReferencesReleased();
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user