1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Ensure that BtreeMovetoUnpacked() does not try to invoke xRecordCompare when it is set to NULL.

FossilOrigin-Name: 2879234b7c373be422af3fe180cae9840943e29a
This commit is contained in:
dan
2014-03-04 16:05:25 +00:00
parent 5f1d536b53
commit a4660bd695
3 changed files with 9 additions and 9 deletions

View File

@@ -4611,7 +4611,7 @@ int sqlite3BtreeMovetoUnpacked(
assert( biasRight==0 || biasRight==1 );
idx = upr>>(1-biasRight); /* idx = biasRight ? upr : (lwr+upr)/2; */
pCur->aiIdx[pCur->iPage] = (u16)idx;
if( pPage->intKey ){
if( xRecordCompare==0 ){
for(;;){
i64 nCellKey;
pCell = findCell(pPage, idx) + pPage->childPtrSize;