Slight optimization to DatabaseDao.update

pull/14/head
Sam Bosley 12 years ago
parent 987c34811e
commit 2db6c3869d

@ -229,6 +229,9 @@ public class DatabaseDao<TYPE extends AbstractModel> {
toUpdate.close();
}
if (toUpdate.getCount() == 0)
return 0;
database.getDatabase().beginTransactionWithListener(new SQLiteTransactionListener() {
@Override
public void onRollback() {

Loading…
Cancel
Save