aboutsummaryrefslogtreecommitdiff
path: root/src/btree.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2019-01-26 23:34:50 +0000
committerdrh <drh@noemail.net>2019-01-26 23:34:50 +0000
commite6a9efb976daf2814b6abfd8e54692ffa9aa78ff (patch)
tree5441a7e111fb29261375793f5081723e98bcd493 /src/btree.c
parent32bb700a9511667c2aaba62a0c1a23c84d1c1d9a (diff)
downloadsqlite-e6a9efb976daf2814b6abfd8e54692ffa9aa78ff.tar.gz
sqlite-e6a9efb976daf2814b6abfd8e54692ffa9aa78ff.zip
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
Diffstat (limited to 'src/btree.c')
-rw-r--r--src/btree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/btree.c b/src/btree.c
index 2345bb006..e0a9862b6 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -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;