am b6247f0a: am 0c06a7cf: Fixed mis-located cleanup code

* commit 'b6247f0a7aad20f76764f6d4ffaf4f6d3a3c1208':
  Fixed mis-located cleanup code
This commit is contained in:
Paul Westbrook 2013-04-15 11:03:25 -07:00 committed by Android Git Automerger
commit 1156277079

View File

@ -552,16 +552,6 @@ public final class DBHelper {
@Override
public void onOpen(SQLiteDatabase db) {
try {
// Cleanup some nasty records
db.execSQL("DELETE FROM " + Account.TABLE_NAME
+ " WHERE " + AccountColumns.DISPLAY_NAME + " ISNULL;");
db.execSQL("DELETE FROM " + HostAuth.TABLE_NAME
+ " WHERE " + HostAuthColumns.PROTOCOL + " ISNULL;");
} catch (SQLException e) {
// Shouldn't be needed unless we're debugging and interrupt the process
LogUtils.e(TAG, e, "Exception cleaning EmailProvider.db");
}
}
}
@ -1067,6 +1057,16 @@ public final class DBHelper {
@Override
public void onOpen(SQLiteDatabase db) {
try {
// Cleanup some nasty records
db.execSQL("DELETE FROM " + Account.TABLE_NAME
+ " WHERE " + AccountColumns.DISPLAY_NAME + " ISNULL;");
db.execSQL("DELETE FROM " + HostAuth.TABLE_NAME
+ " WHERE " + HostAuthColumns.PROTOCOL + " ISNULL;");
} catch (SQLException e) {
// Shouldn't be needed unless we're debugging and interrupt the process
LogUtils.e(TAG, e, "Exception cleaning EmailProvider.db");
}
}
}