Don't use local id in comparison on conflict

pull/14/head
Sam Bosley 13 years ago committed by Tim Su
parent 02bcbff4e2
commit 36a55db6a5

@ -330,6 +330,8 @@ public class TaskDao extends DatabaseDao<Task> {
private void compareAndMergeAfterConflict(Task existing, Task newConflict) { private void compareAndMergeAfterConflict(Task existing, Task newConflict) {
boolean match = true; boolean match = true;
for (Property<?> p : SQL_CONSTRAINT_MERGE_PROPERTIES) { for (Property<?> p : SQL_CONSTRAINT_MERGE_PROPERTIES) {
if (p.equals(Task.ID))
continue;
if (!existing.getValue(p).equals(newConflict.getValue(p))) { if (!existing.getValue(p).equals(newConflict.getValue(p))) {
match = false; match = false;
} }

Loading…
Cancel
Save