/ Check-in [888b09dd]
Login

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

Overview
Comment:Fix an invalid assert() statement added by [3b58f5f066].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 888b09dd8fc0a31b69852a2c10eebb5f31fe35de
User & Date: dan 2011-11-16 15:41:29
Context
2011-11-16
16:23
Remove code made obsolete by the changes to index processing that allow range search on the rowid. check-in: a5418c7f user: drh tags: trunk
15:41
Fix an invalid assert() statement added by [3b58f5f066]. check-in: 888b09dd user: dan tags: trunk
15:27
Where possible, take advantage of the rowid at the end of index records to optimize range constraints (<, >, <=, >=) on the rowid column. check-in: 3b58f5f0 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

  3162   3162       return SQLITE_CORRUPT_BKPT;
  3163   3163     }
  3164   3164     memset(&m, 0, sizeof(m));
  3165   3165     rc = sqlite3VdbeMemFromBtree(pC->pCursor, 0, (int)nCellKey, 1, &m);
  3166   3166     if( rc ){
  3167   3167       return rc;
  3168   3168     }
  3169         -  assert( pUnpacked->flags & UNPACKED_PREFIX_SEARCH );
         3169  +  assert( pUnpacked->flags & UNPACKED_PREFIX_MATCH );
  3170   3170     *res = sqlite3VdbeRecordCompare(m.n, m.z, pUnpacked);
  3171   3171     sqlite3VdbeMemRelease(&m);
  3172   3172     return SQLITE_OK;
  3173   3173   }
  3174   3174   
  3175   3175   /*
  3176   3176   ** This routine sets the value to be returned by subsequent calls to