From fdd912216badd74bce46a310433499ebe5c8b1ab Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Fri, 17 Feb 2012 17:25:54 -0800 Subject: [PATCH] Fixed a syntax error --- astrid/src/com/todoroo/astrid/dao/Database.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrid/src/com/todoroo/astrid/dao/Database.java b/astrid/src/com/todoroo/astrid/dao/Database.java index 1f242ef9d..43b525043 100644 --- a/astrid/src/com/todoroo/astrid/dao/Database.java +++ b/astrid/src/com/todoroo/astrid/dao/Database.java @@ -291,7 +291,7 @@ public class Database extends AbstractDatabase { String remoteId = remoteIds[i]; // Delete any items that have duplicate remote ids - String deleteDuplicates = String.format("DELETE FROM %s WHERE %s IN (SELECT %s.%s FROM %s, %s AS t2 WHERE %s.%s < t2.%s AND %s.%s = t2.%s AND %s.%s > 0 GROUP BY %s.%s", + String deleteDuplicates = String.format("DELETE FROM %s WHERE %s IN (SELECT %s.%s FROM %s, %s AS t2 WHERE %s.%s < t2.%s AND %s.%s = t2.%s AND %s.%s > 0 GROUP BY %s.%s)", table, id, table, id, table, table, table, id, id, table, remoteId, remoteId, table, remoteId, table, id); // Change all items with remote id = 0 to be remote id = NULL