diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-12-06 13:30:51 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-12-06 13:43:39 -0500 |
commit | c8817e608788799837a91b1d2616227594698d2b (patch) | |
tree | 69a1b3410f5b9784971bd01171257785a3b55f35 /test/requirements.py | |
parent | c24423bc2e3fd227bf4a86599e28407bd190ee9e (diff) | |
download | sqlalchemy-c8817e608788799837a91b1d2616227594698d2b.tar.gz |
- SQL Server 2012 now recommends VARCHAR(max), NVARCHAR(max),
VARBINARY(max) for large text/binary types. The MSSQL dialect will
now respect this based on version detection, as well as the new
``deprecate_large_types`` flag.
fixes #3039
Diffstat (limited to 'test/requirements.py')
-rw-r--r-- | test/requirements.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/requirements.py b/test/requirements.py index 22ac13fe8..ffbdfba23 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -460,6 +460,7 @@ class DefaultRequirements(SuiteRequirements): ) + @property def emulated_lastrowid(self): """"target dialect retrieves cursor.lastrowid or an equivalent @@ -777,6 +778,17 @@ class DefaultRequirements(SuiteRequirements): "Not supported on MySQL + Windows" ) + @property + def mssql_freetds(self): + return only_on( + LambdaPredicate( + lambda config: ( + (against(config, 'mssql+pyodbc') and + config.db.dialect.freetds) + or against(config, 'mssql+pymssql') + ) + ) + ) @property def selectone(self): |