diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-18 17:41:30 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-04-18 17:41:30 -0400 |
commit | 0790efcf87a268fd8bc810b711fe2b9760bcf1e6 (patch) | |
tree | f53ebd26adec21c594ffc02d254119a2c7b6013b /test/dialect/test_mssql.py | |
parent | 835f0abb59c10c1204884df1a19f088cf55d49d7 (diff) | |
download | sqlalchemy-0790efcf87a268fd8bc810b711fe2b9760bcf1e6.tar.gz |
- this pymssql test needs to be against the pymssql dialect
- Part of a longer series of fixes needed for pyodbc+
mssql, a CAST to NVARCHAR(max) has been added to the bound
parameter for the table name and schema name in all information schema
queries to avoid the issue of comparing NVARCHAR to NTEXT,
which seems to be rejected by the ODBC driver in some cases,
such as FreeTDS (0.91 only?) plus unicode bound parameters being passed.
The issue seems to be specific to the SQL Server information
schema tables and the workaround is harmless for those cases
where the problem doesn't exist in the first place.
[ticket:2355]
Diffstat (limited to 'test/dialect/test_mssql.py')
-rw-r--r-- | test/dialect/test_mssql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dialect/test_mssql.py b/test/dialect/test_mssql.py index 0dfda9015..f1cd3fe85 100644 --- a/test/dialect/test_mssql.py +++ b/test/dialect/test_mssql.py @@ -1949,7 +1949,7 @@ class TypeRoundTripTest(fixtures.TestBase, AssertsExecutionResults, ComparesTabl engine.execute(tbl.delete()) class MonkeyPatchedBinaryTest(fixtures.TestBase): - __only_on__ = 'mssql' + __only_on__ = 'mssql+pymssql' def test_unicode(self): module = __import__('pymssql') |