diff options
author | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2010-02-17 14:21:50 -0800 |
---|---|---|
committer | Alexandre Fayolle <alexandre.fayolle@logilab.fr> | 2010-02-17 14:21:50 -0800 |
commit | c16ccecd24c6e8a92cae4b8844d3be66efea30d0 (patch) | |
tree | 00617089c41c8a4d0094627bfa77b905b0f56097 /db.py | |
parent | 9dfc9dee10f4ec15db2e94fd87d3ea6e87fc5563 (diff) | |
download | logilab-common-c16ccecd24c6e8a92cae4b8844d3be66efea30d0.tar.gz |
various improvements and fixes concerning logilab.common.db support of SQLServer
Diffstat (limited to 'db.py')
-rw-r--r-- | db.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -774,9 +774,9 @@ class _PyodbcAdapterMT(_PyodbcAdapter): return unicode(value, encoding, 'replace') elif typecode == self.BINARY: # value is a python buffer if binarywrap is not None: - return binarywrap(value.value) + return binarywrap(value.getbinary()) else: - return value.value + return value.getbinary() elif typecode == self.UNKNOWN: # may occurs on constant selection for instance (e.g. SELECT 'hop') # with postgresql at least @@ -789,19 +789,19 @@ class _PyodbcSqlServer2000Adapter(_PyodbcAdapter): driver = "SQL Server" class _PyodbcSqlServer2005Adapter(_PyodbcAdapter): - driver = "SQL Native Client" + driver = "SQL Server Native Client 10.0" class _PyodbcSqlServer2008Adapter(_PyodbcAdapter): - driver = "SQL Native Client 10.0" + driver = "SQL Server Native Client 10.0" class _PyodbcSqlServer2000AdapterMT(_PyodbcAdapterMT): driver = "SQL Server" class _PyodbcSqlServer2005AdapterMT(_PyodbcAdapterMT): - driver = "SQL Native Client 10.0" + driver = "SQL Server Native Client 10.0" class _PyodbcSqlServer2008AdapterMT(_PyodbcAdapterMT): - driver = "SQL Native Client 10.0" + driver = "SQL Server Native Client 10.0" ## Drivers, Adapters and helpers registries ################################### |