dbapi_con = connection.connection
- self._free_tds = re.match(r".*libtdsodbc.*\.so", dbapi_con.getinfo(pyodbc.SQL_DRIVER_NAME))
+ self.freetds = re.match(r".*libtdsodbc.*\.so", dbapi_con.getinfo(pyodbc.SQL_DRIVER_NAME))
# the "Py2K only" part here is theoretical.
# have not tried pyodbc + python3.1 yet.
# Py2K
- self.supports_unicode_statements = not self._free_tds
- self.supports_unicode_binds = not self._free_tds
+ self.supports_unicode_statements = not self.freetds
+ self.supports_unicode_binds = not self.freetds
# end Py2K
dialect = MSDialect_pyodbc
@testing.emits_warning('.*empty sequence.*')
@testing.fails_on('firebird', "kinterbasdb doesn't send full type information")
+ @testing.fails_if(lambda:
+ (testing.db.name, testing.db.driver == 'mssql', 'pyodbc')
+ and not testing.db.dialect.freetds,
+ "not supported by Windows ODBC driver")
def test_bind_in(self):
users.insert().execute(user_id = 7, user_name = 'jack')
users.insert().execute(user_id = 8, user_name = 'fred')