summaryrefslogtreecommitdiff
path: root/db.py
diff options
context:
space:
mode:
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>2010-02-17 14:21:50 -0800
committerAlexandre Fayolle <alexandre.fayolle@logilab.fr>2010-02-17 14:21:50 -0800
commitc16ccecd24c6e8a92cae4b8844d3be66efea30d0 (patch)
tree00617089c41c8a4d0094627bfa77b905b0f56097 /db.py
parent9dfc9dee10f4ec15db2e94fd87d3ea6e87fc5563 (diff)
downloadlogilab-common-c16ccecd24c6e8a92cae4b8844d3be66efea30d0.tar.gz
various improvements and fixes concerning logilab.common.db support of SQLServer
Diffstat (limited to 'db.py')
-rw-r--r--db.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/db.py b/db.py
index f4cb3b4..877cb0e 100644
--- a/db.py
+++ b/db.py
@@ -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 ###################################