Fixed the storage of binary strings in the database.
authorCameron Dale <camrdale@gmail.com>
Thu, 10 Jan 2008 23:47:43 +0000 (15:47 -0800)
committerCameron Dale <camrdale@gmail.com>
Thu, 10 Jan 2008 23:47:43 +0000 (15:47 -0800)
commit40fe12dea0ea3d40eff65f314365617d2568a979
treeff6ace4cd6ee98f9ce4421548b203d9581f8343f
parente6beef78406c3093fc4eb98c4293b9257b44aa61
Fixed the storage of binary strings in the database.

Errors were caused when a string stored in the database had
a NUL character in it. Now the DB uses base64 encoding for
all hash values, with automatic conversion using adapters
and converters.

Also added some unittests to the DB.
apt_dht_Khashmir/db.py