Fossil SCM
Fix an issue with the "uf=" query parameter on the timeline.
Commit
d81c42d9eda6bc80bceeae797c28fbe1540bef7c
Parent
3d2690a9761fe54…
1 file changed
+1
-1
+1
-1
| --- src/descendants.c | ||
| +++ src/descendants.c | ||
| @@ -531,11 +531,11 @@ | ||
| 531 | 531 | db_step(&ins); |
| 532 | 532 | db_reset(&ins); |
| 533 | 533 | } |
| 534 | 534 | } |
| 535 | 535 | db_finalize(&q); |
| 536 | - db_prepare(&q, "SELECT cid FROM plink WHERE pid=:rid"); | |
| 536 | + db_prepare(&q, "SELECT cid FROM plink WHERE pid=:rid AND isprim"); | |
| 537 | 537 | |
| 538 | 538 | while( (rid = bag_first(&pending))!=0 ){ |
| 539 | 539 | bag_remove(&pending, rid); |
| 540 | 540 | db_bind_int(&q, ":rid", rid); |
| 541 | 541 | while( db_step(&q)==SQLITE_ROW ){ |
| 542 | 542 |
| --- src/descendants.c | |
| +++ src/descendants.c | |
| @@ -531,11 +531,11 @@ | |
| 531 | db_step(&ins); |
| 532 | db_reset(&ins); |
| 533 | } |
| 534 | } |
| 535 | db_finalize(&q); |
| 536 | db_prepare(&q, "SELECT cid FROM plink WHERE pid=:rid"); |
| 537 | |
| 538 | while( (rid = bag_first(&pending))!=0 ){ |
| 539 | bag_remove(&pending, rid); |
| 540 | db_bind_int(&q, ":rid", rid); |
| 541 | while( db_step(&q)==SQLITE_ROW ){ |
| 542 |
| --- src/descendants.c | |
| +++ src/descendants.c | |
| @@ -531,11 +531,11 @@ | |
| 531 | db_step(&ins); |
| 532 | db_reset(&ins); |
| 533 | } |
| 534 | } |
| 535 | db_finalize(&q); |
| 536 | db_prepare(&q, "SELECT cid FROM plink WHERE pid=:rid AND isprim"); |
| 537 | |
| 538 | while( (rid = bag_first(&pending))!=0 ){ |
| 539 | bag_remove(&pending, rid); |
| 540 | db_bind_int(&q, ":rid", rid); |
| 541 | while( db_step(&q)==SQLITE_ROW ){ |
| 542 |