Diff
Not logged in

Differences From:

File src/pivot.c part of check-in [dbda8d6ce9] - Initial check-in of m1 sources. by drh on 2007-07-21 14:10:57. [view]

To:

File src/pivot.c part of check-in [5602bbbaff] - Fix a bug in the logic for finding a pivot during a merge. by drh on 2007-07-30 17:05:25. [view]

@@ -70,9 +70,9 @@
 */
 void pivot_set_secondary(int rid){
   /* Insert the primary record */
   db_multi_exec(
-    "INSERT INTO aqueue(rid, mtime, pending, src)"
+    "INSERT OR IGNORE INTO aqueue(rid, mtime, pending, src)"
     "  SELECT %d, mtime, 1, 0 FROM plink WHERE cid=%d",
     rid, rid
   );
 }