diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2004-02-26 10:07:14 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2004-02-26 10:07:14 (GMT) |
commit | a7befda8d80d759cb88ef6732581860166ecf438 (patch) | |
tree | 0d67c57f5b0c9bf097378dd349f1100f2ca6f89b /Lib/bsddb/__init__.py | |
parent | 904de5b7343994a7fcb2941ce094ab60da68afed (diff) | |
download | cpython-a7befda8d80d759cb88ef6732581860166ecf438.zip cpython-a7befda8d80d759cb88ef6732581860166ecf438.tar.gz cpython-a7befda8d80d759cb88ef6732581860166ecf438.tar.bz2 |
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().
Diffstat (limited to 'Lib/bsddb/__init__.py')
-rw-r--r-- | Lib/bsddb/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py index 9c59b00..90bf92b 100644 --- a/Lib/bsddb/__init__.py +++ b/Lib/bsddb/__init__.py @@ -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() |