/ Check-in [c1ac0070]
Login

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

Overview
Comment:If the initial byte of a record is a large value, then always used the generalized record comparison routine sqlite3VdbeRecordCompare() rather than one of the specialized versions that are optimized for shorter records.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c1ac00706bae45fe9735061ada025880606cdfb8ecfdaa36b4e2d04275820861
User & Date: drh 2019-03-05 14:39:00
Context
2019-03-05
14:47
New dbfuzz2 test cases added to test/fuzzdata7.db check-in: 25975e1f user: drh tags: trunk
14:39
If the initial byte of a record is a large value, then always used the generalized record comparison routine sqlite3VdbeRecordCompare() rather than one of the specialized versions that are optimized for shorter records. check-in: c1ac0070 user: drh tags: trunk
2019-03-04
07:15
Fix a problem preventing compilation with SQLITE_OMIT_UTF16. check-in: 906d1fd8 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/btree.c.

  5548   5548             pCur->ix = (u16)idx;
  5549   5549             rc = accessPayload(pCur, 0, nCell, (unsigned char*)pCellKey, 0);
  5550   5550             pCur->curFlags &= ~BTCF_ValidOvfl;
  5551   5551             if( rc ){
  5552   5552               sqlite3_free(pCellKey);
  5553   5553               goto moveto_finish;
  5554   5554             }
  5555         -          c = xRecordCompare(nCell, pCellKey, pIdxKey);
         5555  +          c = sqlite3VdbeRecordCompare(nCell, pCellKey, pIdxKey);
  5556   5556             sqlite3_free(pCellKey);
  5557   5557           }
  5558   5558           assert( 
  5559   5559               (pIdxKey->errCode!=SQLITE_CORRUPT || c==0)
  5560   5560            && (pIdxKey->errCode!=SQLITE_NOMEM || pCur->pBtree->db->mallocFailed)
  5561   5561           );
  5562   5562           if( c<0 ){