Diff
Not logged in

Differences From:

File src/manifest.c part of check-in [ba486fec5a] - Add the unclustered table and the M lines to manifests. Process clusters in manifest_parse and manifest_crossref. The xfer process still does not yet use clusters though so it is still compatible. But that is about to change. by drh on 2007-09-03 01:28:57. [view]

To:

File src/manifest.c part of check-in [e1c1877c99] - Sync using clusters appears to work. More testing is needed before we go live. by drh on 2007-09-08 16:01:28. Also file src/manifest.c part of check-in [bbcb6326c9] - Pulled in the navbar and timeline changes. by aku on 2007-09-17 00:58:51. [view]

@@ -350,17 +350,14 @@
       m.rDate, rid, m.zUser, m.zComment
     );
   }
   for(i=0; i<m.nCChild; i++){
-    static Stmt dc;
-    db_static_prepare(&dc,
-      "DELETE FROM unclustered WHERE rid ="
-      " (SELECT rid FROM blob WHERE uuid=:u)"
-    );
-    db_bind_text(&dc, ":u", m.azCChild[i]);
-    db_step(&dc);
-    db_reset(&dc);
+    int rid;
+    rid = uuid_to_rid(m.azCChild[i], 1);
+    if( rid>0 ){
+      db_multi_exec("DELETE FROM unclustered WHERE rid=%d", rid);
+    }
   }
   db_end_transaction(0);
   manifest_clear(&m);
   return 1;
 }