This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author quixo
Recipients
Date 2007-05-25.21:25:30
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
A ram -resident database is creaed with btopen

10 records are added, keyed by sequence, value is sequence + 1 (both converted to strings).

I check to ensure that all of the records have been added.

I delete the first record, check the keys again, and it still works.

I delete the first record, check the keys again, and it fails, thusly:

python testbtopen.py
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
0
1
2
3
4
5
6
7
8
9
0 1
['1', '2', '3', '4', '5', '6', '7', '8', '9']
1
2
3
4
5
6
7
8
9
Traceback (most recent call last):
  File "testbtopen.py", line 13, in ?
    i   =       db.first()[0]
  File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 269, in first

  File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 183, in _checkCursor

_bsddb.DBNotFoundError: (-30989, 'DB_NOTFOUND: No matching key/data pair found')
charles@mandala1:~/projects/Python/bsddb$ python testbtopen.py
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
0
1
2
3
4
5
6
7
8
9
0 1
['1', '2', '3', '4', '5', '6', '7', '8', '9']
1
2
3
4
5
6
7
8
9
Traceback (most recent call last):
  File "testbtopen.py", line 13, in ?
    i   =       db.first()[0]
  File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 269, in first

  File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 183, in _checkCursor

_bsddb.DBNotFoundError: (-30989, 'DB_NOTFOUND: No matching key/data pair found')
History
Date User Action Args
2007-08-23 14:54:08adminlinkissue1725856 messages
2007-08-23 14:54:08admincreate