[pybsddb] The BTREE comparison function get's truncated data

xcorat xcorat at gmail.com
Wed Sep 11 21:12:01 CEST 2013


Hi

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
"datetime\ndatetime\np1\n(S'\\x07\\xdd\\x08\\x1f\\x17\\x1f\\x1f\\x0f\\x10\\x02'\ntRp2\n."

right key (truncated)
"cdatetime\ndatetime\np1\n(S'\\x07\\xdd\\t\\x04\\x1642\\x"

Do you know why? any fixes?

thank you,
Sachi.

.

-- 
Xcorat :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20130911/c461b39b/attachment.html>


More information about the pybsddb mailing list