-
For a btree database,
btree.get(inexistent_record,DB_SET_RECNO)
should return None instead of DB_SET_RECNO (28)
The faulty code is in function DB_get around
if ((err == DB_NOTFOUND || err == DB_KEYEMPTY) && (dfltobj != NULL)) {
Here *dfltobj has value DB_SET_RECNO
No problem if argument is explicitely defined using flags=
Simple code showing the bug:
vvvvvvvvvvvvvvvvvvvv...
2009-08-10 17:38:28 UTC by fapael
-
fnqHSr rcffiqzjhgpj, [url=http://rvxhjxumtcfm.com/]rvxhjxumtcfm[/url], [link=http://pwwbwdhhdouo.com/]pwwbwdhhdouo[/link], http://tabpqoxdyizk.com/.
2009-03-22 13:14:34 UTC by nobody
-
Got same kind of problem with test.py ("glibc detected...invalid pointer") with db4.6.21 and db4.5.20 (in test_basics)
Using Python 2.5.2 , /lib/i686/libc.so.6, bsddb3-4.5.0
Tests pass OK with 4.4.20.
2008-04-10 09:33:14 UTC by nobody
-
3m96YU osorlaqudkyq, [url=http://pnnajsvhcpmg.com/]pnnajsvhcpmg[/url], [link=http://bhrhqybbnxer.com/]bhrhqybbnxer[/link], http://yrvroemqoxnh.com/.
2008-04-07 07:24:33 UTC by nobody
-
greg committed revision 317 to the PyBSDDB SVN repository, changing 3 files.
2008-03-06 08:48:13 UTC by greg
-
greg committed revision 316 to the PyBSDDB SVN repository, changing 21 files.
2008-03-02 20:02:13 UTC by greg
-
import bsddb3.tests.test_thread # precompiled from /home/ivanlan/bsddb3-4.5.0/build/lib.linux-x86_64-2.5/bsddb3/tests/test_thread.pyc
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Berkeley DB 4.5.20: (March 30, 2007)
bsddb.db.version(): (4, 5, 20)
bsddb.db.__version__: 4.5.0
bsddb.db.cvsid: $Id: _bsddb.c 53253 2007-01-05 02:06:17Z gregory.p.smith $...
2008-03-01 17:20:16 UTC by nobody
-
jcea committed revision 315 to the PyBSDDB SVN repository, changing 1 files.
2008-02-27 20:42:04 UTC by jcea
-
jcea committed revision 314 to the PyBSDDB SVN repository, changing 1 files.
2008-02-27 19:23:04 UTC by jcea
-
jcea committed revision 313 to the PyBSDDB SVN repository, changing 1 files.
2008-02-27 19:15:14 UTC by jcea