1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Fix a problem with B+trees. (CVS 1366)

FossilOrigin-Name: 64a75c4cd40f79c7b384bb2972922ff0c10212a4
This commit is contained in:
drh
2004-05-12 21:11:27 +00:00
parent 8b18dd4fb5
commit fc70e6fcec
4 changed files with 14 additions and 12 deletions

View File

@@ -9,7 +9,7 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
** $Id: btree.c,v 1.129 2004/05/12 19:18:16 drh Exp $
** $Id: btree.c,v 1.130 2004/05/12 21:11:27 drh Exp $
**
** This file implements a external (disk-based) database using BTrees.
** For a detailed discussion of BTrees, refer to
@@ -1987,6 +1987,8 @@ int sqlite3BtreeMoveto(BtCursor *pCur, const void *pKey, i64 nKey, int *pRes){
}
if( c==0 ){
if( pPage->leafData && !pPage->leaf ){
lwr = pCur->idx;
upr = lwr - 1;
break;
}else{
pCur->iMatch = c;