=======
CHANGES
=======
+0.7.2
+=====
+- mssql
+ - Adjusted the pyodbc dialect such that bound
+ values are passed as bytes and not unicode
+ if the "Easysoft" unix drivers are detected.
+ This is the same behavior as occurs with
+ FreeTDS. Easysoft appears to segfault
+ if Python unicodes are passed under
+ certain circumstances.
+
0.7.1
=====
- general
# if the freetds.so is detected
freetds = False
+ # will be set to True after initialize()
+ # if the libessqlsrv.so is detected
+ easysoft = False
+
@classmethod
def dbapi(cls):
return __import__('pyodbc')
dbapi_con = connection.connection
- self.freetds = bool(re.match(r".*libtdsodbc.*\.so",
- dbapi_con.getinfo(pyodbc.SQL_DRIVER_NAME)
+ _sql_driver_name = dbapi_con.getinfo(pyodbc.SQL_DRIVER_NAME)
+ self.freetds = bool(re.match(r".*libtdsodbc.*\.so", _sql_driver_name
+ ))
+ self.easysoft = bool(re.match(r".*libessqlsrv.*\.so", _sql_driver_name
))
# the "Py2K only" part here is theoretical.
# have not tried pyodbc + python3.1 yet.
# Py2K
- self.supports_unicode_statements = not self.freetds
- self.supports_unicode_binds = not self.freetds
+ self.supports_unicode_statements = not self.freetds and not self.easysoft
+ self.supports_unicode_binds = not self.freetds and not self.easysoft
# end Py2K
# run other initialization which asks for user name, etc.