Diff
Not logged in

Differences From:

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]

To:

File src/pivot.c part of check-in [fa0ba20a51] - Fix another bug in the pivot finder. Null-merge with the dan-branch so that we now only have a single leaf on the tree. by drh on 2007-07-30 21:23:44. [view]

@@ -57,9 +57,9 @@
 
   /* Insert the primary record */
   db_multi_exec(
     "INSERT INTO aqueue(rid, mtime, pending, src)"
-    "  SELECT %d, mtime, 1, 1 FROM plink WHERE cid=%d",
+    "  SELECT %d, mtime, 1, 1 FROM plink WHERE cid=%d LIMIT 1",
     rid, rid
   );
 }