I'm not sure where to find the problem. I'm saving pickled (cPickle) datetime keys in the database, and set the comparison function to load those keys and compare. When I call the set_range function, the right_key value the comparison function gets is **sometimes** truncated. Left key (the one I send) is always fine. The data in the database is fine too.
Ex. Left key
right key (truncated)
The data is truncated even when it is a string representing an integer.
Do you know why? any fixes?
Can you provide more information about your use of BDB ? Including the BDB version and the python's extension version ? Also, we would like to know the OS version.
We are not familiar with the python extension implementation, but if you can provide a test case to reproduce the issue, we can try to debug it to check where the issue happens.