的堆棧跟蹤刪除SQLite數據庫行時得到了磁盤已滿的例外是下面:試圖在安卓
android.database.sqlite.SQLiteFullException: database or disk is full
at android.database.sqlite.SQLiteStatement.native_executeSql(Native Method)
at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:90)
at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1917)
at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1857)
at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:719)
at android.database.sqlite.SQLiteStatement.releaseAndUnlock(SQLiteStatement.java:273)
at android.database.sqlite.SQLiteStatement.executeUpdateDelete(SQLiteStatement.java:96)
at android.database.sqlite.SQLiteDatabase.delete(SQLiteDatabase.java:1759)
at com.test.testapp.recovery(test.java:289)
at com.test.testapp.run(test.java:167)
雖然我的代碼只是刪除該條目。
mDatabase = dbOpener.getWritableDatabase();
mDatabase.delete("table", "name = ?", "row1");
我以爲只有在磁盤插入到數據庫時纔可能是滿的。有任何想法嗎?
請考慮磁盤*可能*實際上已滿的情況,即使是刪除,它也會記錄在日誌中。 – Machinarius