Fossil

Check-in [148d4b66]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix an unfinalized prepared statement in the "fossil bisect ui" command.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 148d4b6603248af7c82856ea8004989ec3e64431f3a5e4d52fe8d95e7c4688af
User & Date: drh 2018-08-09 16:00:36.232
Context
2018-08-09
21:40
Remove an unused function from the backoffice.c. This problem only comes up on Windows as the function call was contained within #ifdef _WIN32. ... (check-in: 2d732f40 user: drh tags: trunk)
16:00
Fix an unfinalized prepared statement in the "fossil bisect ui" command. ... (check-in: 148d4b66 user: drh tags: trunk)
15:39
Improvements to formatting in generated emails to make them appear less like spam. Suggestions from "gahr" on the forum. ... (check-in: 27404ad0 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/timeline.c.
458
459
460
461
462
463
464

465
466
467
468
469
470
471
472
      @ •
    }
    if( modPending ){
      @ <span class="modpending">(Awaiting Moderator Approval)</span>
    }
    if( (tmFlags & TIMELINE_BISECT)!=0 && zType[0]=='c' ){
      static Stmt bisectQuery;

      db_prepare(&bisectQuery, "SELECT seq, stat FROM bilog WHERE rid=:rid");
      db_bind_int(&bisectQuery, ":rid", rid);
      if( db_step(&bisectQuery)==SQLITE_ROW ){
        @ <b>%s(db_column_text(&bisectQuery,1))</b>
        @ (%d(db_column_int(&bisectQuery,0)))
      }
      db_reset(&bisectQuery);
    }







>
|







458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
      @ &bull;
    }
    if( modPending ){
      @ <span class="modpending">(Awaiting Moderator Approval)</span>
    }
    if( (tmFlags & TIMELINE_BISECT)!=0 && zType[0]=='c' ){
      static Stmt bisectQuery;
      db_static_prepare(&bisectQuery,
          "SELECT seq, stat FROM bilog WHERE rid=:rid");
      db_bind_int(&bisectQuery, ":rid", rid);
      if( db_step(&bisectQuery)==SQLITE_ROW ){
        @ <b>%s(db_column_text(&bisectQuery,1))</b>
        @ (%d(db_column_int(&bisectQuery,0)))
      }
      db_reset(&bisectQuery);
    }