mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Ensure that the btree cursor is correctly set up prior to backing it up
as part of a delete operation on a divider cell in an index. FossilOrigin-Name: a3ea1a822d3a110f4f186f2fc8550f435c8c98635d058096b7be9d4df7066b8b
This commit is contained in:
@@ -8770,6 +8770,7 @@ int sqlite3BtreeDelete(BtCursor *pCur, u8 flags){
|
||||
** sub-tree headed by the child page of the cell being deleted. This makes
|
||||
** balancing the tree following the delete operation easier. */
|
||||
if( !pPage->leaf ){
|
||||
pCur->skipNext = 0;
|
||||
rc = sqlite3BtreePrevious(pCur, 0);
|
||||
assert( rc!=SQLITE_DONE );
|
||||
if( rc ) return rc;
|
||||
|
Reference in New Issue
Block a user