堆栈跟踪如下:
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");
我认为只有在插入数据库时磁盘才可能已满。有任何想法吗?