summaryrefslogtreecommitdiff
path: root/db.py
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2007-12-21 12:45:28 +0100
committerSylvain <syt@logilab.fr>2007-12-21 12:45:28 +0100
commite0a4afb5ab565005790714f18aa3e559aebb5b25 (patch)
tree3764e977c2c929238fe2d6ac74c6912559819afb /db.py
parent428c045a96c16b0bcf751c6db74d43402e950d21 (diff)
downloadlogilab-common-e0a4afb5ab565005790714f18aa3e559aebb5b25.tar.gz
binarywrap support
Diffstat (limited to 'db.py')
-rw-r--r--db.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/db.py b/db.py
index 7ca78ae..d44fc1c 100644
--- a/db.py
+++ b/db.py
@@ -400,6 +400,8 @@ class _PySqlite2Adapter(DBAPIAdapter):
return self._wrap_if_needed(PySqlite2CnxWrapper(cnx))
def process_value(self, value, description, encoding='utf-8', binarywrap=None):
+ if not binarywrap is None and isinstance(value, self._native_module.Binary):
+ return binarywrap(value)
return value # no type code support, can't do anything