mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fixes SF bug # 778421
* Fixed a bug in the compatibility interface set_location() method where it would not properly search to the next nearest key when used on BTree databases. [SF bug id 788421] * Fixed a bug in the compatibility interface set_location() method where it could crash when looking up keys in a hash or recno format database due to an incorrect free().
This commit is contained in:
parent
904de5b734
commit
a7befda8d8
4 changed files with 39 additions and 6 deletions
|
@ -244,7 +244,7 @@ class _DBWithCursor(_iter_mixin):
|
|||
def set_location(self, key):
|
||||
self._checkOpen()
|
||||
self._checkCursor()
|
||||
return self.dbc.set(key)
|
||||
return self.dbc.set_range(key)
|
||||
|
||||
def next(self):
|
||||
self._checkOpen()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue