Merge pull request #1204 from jaten-molecula/clear_cursors

reset cursor stacks before reuse
This commit is contained in:
tgruben 2020-12-09 19:01:08 -06:00 committed by GitHub
commit 087418566b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -561,6 +561,7 @@ func (tx *Tx) cursor(name string) (*Cursor, error) {
}
c := tx.db.getCursor(tx)
c.stack.top = 0
c.stack.elems[0] = stackElem{pgno: root}
return c, nil
}