Skip to content

Commit 1ca697a

Browse files
committed
Update FinalDb.java
1 parent 37b2d67 commit 1ca697a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/net/tsz/afinal/FinalDb.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -382,13 +382,7 @@ public void dropDb() {
382382
"SELECT name FROM sqlite_master WHERE type ='table' AND name != 'sqlite_sequence'", null);
383383
if (cursor != null) {
384384
while (cursor.moveToNext()) {
385-
// 添加异常捕获.忽略删除所有表时出现的异常:
386-
// table sqlite_sequence may not be dropped
387-
try {
388-
db.execSQL("DROP TABLE " + cursor.getString(0));
389-
} catch (SQLException e) {
390-
Log.e(TAG, e.getMessage());
391-
}
385+
db.execSQL("DROP TABLE " + cursor.getString(0));
392386
}
393387
}
394388
if (cursor != null) {

0 commit comments

Comments
 (0)