Fossil SCM
Fix an unfinalized prepared statement in the "fossil bisect ui" command.
Commit
148d4b6603248af7c82856ea8004989ec3e64431f3a5e4d52fe8d95e7c4688af
Parent
27404ad05f378c1…
1 file changed
+2
-1
+2
-1
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -460,11 +460,12 @@ | ||
| 460 | 460 | if( modPending ){ |
| 461 | 461 | @ <span class="modpending">(Awaiting Moderator Approval)</span> |
| 462 | 462 | } |
| 463 | 463 | if( (tmFlags & TIMELINE_BISECT)!=0 && zType[0]=='c' ){ |
| 464 | 464 | static Stmt bisectQuery; |
| 465 | - db_prepare(&bisectQuery, "SELECT seq, stat FROM bilog WHERE rid=:rid"); | |
| 465 | + db_static_prepare(&bisectQuery, | |
| 466 | + "SELECT seq, stat FROM bilog WHERE rid=:rid"); | |
| 466 | 467 | db_bind_int(&bisectQuery, ":rid", rid); |
| 467 | 468 | if( db_step(&bisectQuery)==SQLITE_ROW ){ |
| 468 | 469 | @ <b>%s(db_column_text(&bisectQuery,1))</b> |
| 469 | 470 | @ (%d(db_column_int(&bisectQuery,0))) |
| 470 | 471 | } |
| 471 | 472 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -460,11 +460,12 @@ | |
| 460 | if( modPending ){ |
| 461 | @ <span class="modpending">(Awaiting Moderator Approval)</span> |
| 462 | } |
| 463 | if( (tmFlags & TIMELINE_BISECT)!=0 && zType[0]=='c' ){ |
| 464 | static Stmt bisectQuery; |
| 465 | db_prepare(&bisectQuery, "SELECT seq, stat FROM bilog WHERE rid=:rid"); |
| 466 | db_bind_int(&bisectQuery, ":rid", rid); |
| 467 | if( db_step(&bisectQuery)==SQLITE_ROW ){ |
| 468 | @ <b>%s(db_column_text(&bisectQuery,1))</b> |
| 469 | @ (%d(db_column_int(&bisectQuery,0))) |
| 470 | } |
| 471 |
| --- src/timeline.c | |
| +++ src/timeline.c | |
| @@ -460,11 +460,12 @@ | |
| 460 | if( modPending ){ |
| 461 | @ <span class="modpending">(Awaiting Moderator Approval)</span> |
| 462 | } |
| 463 | if( (tmFlags & TIMELINE_BISECT)!=0 && zType[0]=='c' ){ |
| 464 | static Stmt bisectQuery; |
| 465 | db_static_prepare(&bisectQuery, |
| 466 | "SELECT seq, stat FROM bilog WHERE rid=:rid"); |
| 467 | db_bind_int(&bisectQuery, ":rid", rid); |
| 468 | if( db_step(&bisectQuery)==SQLITE_ROW ){ |
| 469 | @ <b>%s(db_column_text(&bisectQuery,1))</b> |
| 470 | @ (%d(db_column_int(&bisectQuery,0))) |
| 471 | } |
| 472 |