Merge "a dbobject is closed twice and that causes incorrect warnings"

This commit is contained in:
Vasu Nori
2010-03-04 11:47:12 -08:00
committed by Android (Google) Code Review

View File

@@ -1542,7 +1542,6 @@ public class SQLiteDatabase extends SQLiteClosable {
}
}
statement.execute();
statement.close();
return lastChangeCount();
} catch (SQLiteDatabaseCorruptException e) {
onCorruption();
@@ -1638,7 +1637,6 @@ public class SQLiteDatabase extends SQLiteClosable {
// Run the program and then cleanup
statement.execute();
statement.close();
int numChangedRows = lastChangeCount();
if (Config.LOGD && Log.isLoggable(TAG, Log.VERBOSE)) {
Log.v(TAG, "Updated " + numChangedRows + " using " + values + " and " + sql);