Issue 890872: BSDDB set_location bug (original) (raw)

Issue890872

Created on 2004-02-05 09:08 by mcfletch, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bsddb_error_demo.py mcfletch,2004-02-05 09:09 Test for bsddb set_location error for btree databases
Messages (3)
msg19916 - (view) Author: Mike C. Fletcher (mcfletch) Date: 2004-02-05 09:08
In module \lib\bsddb\__init__.py line 147, the method set_location() uses self.dbc.set(key) , which raises an error if the key is not found. It should be using self.dbc.set_range(key) , which matches the documented behaviour for btree databases. Test for correct behaviour is attached. Behaviour is seen under Python 2.3.3 win32 binary build.
msg19917 - (view) Author: alan johnson (chomo) Date: 2004-06-14 21:07
Logged In: YES user_id=943591 looks like need testcase
msg19918 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2004-07-13 21:14
Logged In: YES user_id=413 this has been fixed in both HEAD and python 2.3 cvs with a test case. (appears to have been committed a while ago)
History
Date User Action Args
2022-04-11 14:56:02 admin set github: 39903
2004-02-05 09:08:52 mcfletch create