Share

PyBSDDB

Code

Programming Languages: Python

Repositories

browse code, statistics svn co https://pybsddb.svn.sourceforge.net/svnroot/pybsddb pybsddb

Show:

What's happening?

  • bad return for inexistent recno in btree

    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

Our Numbers