Fossil SCM

Fix private content push bug mentioned on Forum. It's possible that this content has already been recorded as private so ignore unique constraint error.

andybradford 2019-04-11 14:12 trunk
Commit 82aded4cff95dd74078209baabbb68bde9d4a89488e66f41034e3d8c4102cc96
1 file changed +1 -1
+1 -1
--- src/content.c
+++ src/content.c
@@ -598,11 +598,11 @@
598598
if( !pBlob ){
599599
db_multi_exec("INSERT OR IGNORE INTO phantom VALUES(%d)", rid);
600600
}
601601
}
602602
if( g.markPrivate || isPrivate ){
603
- db_multi_exec("INSERT INTO private VALUES(%d)", rid);
603
+ db_multi_exec("INSERT OR IGNORE INTO private VALUES(%d)", rid);
604604
markAsUnclustered = 0;
605605
}
606606
if( nBlob==0 ) blob_reset(&cmpr);
607607
608608
/* If the srcId is specified, then the data we just added is
609609
--- src/content.c
+++ src/content.c
@@ -598,11 +598,11 @@
598 if( !pBlob ){
599 db_multi_exec("INSERT OR IGNORE INTO phantom VALUES(%d)", rid);
600 }
601 }
602 if( g.markPrivate || isPrivate ){
603 db_multi_exec("INSERT INTO private VALUES(%d)", rid);
604 markAsUnclustered = 0;
605 }
606 if( nBlob==0 ) blob_reset(&cmpr);
607
608 /* If the srcId is specified, then the data we just added is
609
--- src/content.c
+++ src/content.c
@@ -598,11 +598,11 @@
598 if( !pBlob ){
599 db_multi_exec("INSERT OR IGNORE INTO phantom VALUES(%d)", rid);
600 }
601 }
602 if( g.markPrivate || isPrivate ){
603 db_multi_exec("INSERT OR IGNORE INTO private VALUES(%d)", rid);
604 markAsUnclustered = 0;
605 }
606 if( nBlob==0 ) blob_reset(&cmpr);
607
608 /* If the srcId is specified, then the data we just added is
609

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button