diff options
author | Sylvain <syt@logilab.fr> | 2007-12-21 12:45:28 +0100 |
---|---|---|
committer | Sylvain <syt@logilab.fr> | 2007-12-21 12:45:28 +0100 |
commit | e0a4afb5ab565005790714f18aa3e559aebb5b25 (patch) | |
tree | 3764e977c2c929238fe2d6ac74c6912559819afb /db.py | |
parent | 428c045a96c16b0bcf751c6db74d43402e950d21 (diff) | |
download | logilab-common-e0a4afb5ab565005790714f18aa3e559aebb5b25.tar.gz |
binarywrap support
Diffstat (limited to 'db.py')
-rw-r--r-- | db.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |