/ Check-in [564fa75195]
Login

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

Overview
Comment:Fix a broken assert() in fts3.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 564fa75195c5179d0bc86431aaff06136fc65ec63aa9839cd1114b1fbfac928b
User & Date: dan 2018-09-10 16:38:25
Context
2018-09-10
17:21
Add the ability for loadable extensions to access the new sqlite3_create_window_function() interface. check-in: 3def6d8ef1 user: drh tags: trunk
16:38
Fix a broken assert() in fts3.c. check-in: 564fa75195 user: dan tags: trunk
14:43
New testcase() macros on virtual table xBestIndex logic. check-in: 3bbd9c5f2f user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to ext/fts3/fts3.c.

  3804   3804   **
  3805   3805   ** Flush the contents of the pending-terms table to disk.
  3806   3806   */
  3807   3807   static int fts3SavepointMethod(sqlite3_vtab *pVtab, int iSavepoint){
  3808   3808     int rc = SQLITE_OK;
  3809   3809     UNUSED_PARAMETER(iSavepoint);
  3810   3810     assert( ((Fts3Table *)pVtab)->inTransaction );
  3811         -  assert( ((Fts3Table *)pVtab)->mxSavepoint < iSavepoint );
         3811  +  assert( ((Fts3Table *)pVtab)->mxSavepoint <= iSavepoint );
  3812   3812     TESTONLY( ((Fts3Table *)pVtab)->mxSavepoint = iSavepoint );
  3813   3813     if( ((Fts3Table *)pVtab)->bIgnoreSavepoint==0 ){
  3814   3814       rc = fts3SyncMethod(pVtab);
  3815   3815     }
  3816   3816     return rc;
  3817   3817   }
  3818   3818