]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
- turn on the mssql legacy_schema_aliasing flag to remove
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 May 2015 14:55:36 +0000 (10:55 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 26 May 2015 14:55:36 +0000 (10:55 -0400)
warnings

alembic/testing/assertions.py
alembic/util.py
tests/test_mssql.py

index fd65fd6eff7fb3ebe23e160cd7fc37af4e8c5ff2..b3a5acdad18170c7cb5080e3d13d3862c1211e2c 100644 (file)
@@ -89,6 +89,8 @@ def _get_dialect(name):
             _dialects[name] = d = dialect_mod.dialect()
             if name == 'postgresql':
                 d.implicit_returning = True
+            elif name == 'mssql':
+                d.legacy_schema_aliasing = False
             return d
 
 
index 87bc7b1cbd5d60ae60dfda746e0dadbf74a23ae7..2e0f731ff36922deb46b1aa371002e4e948ce54c 100644 (file)
@@ -37,6 +37,7 @@ sqla_094 = _vers >= (0, 9, 4)
 sqla_094 = _vers >= (0, 9, 4)
 sqla_099 = _vers >= (0, 9, 9)
 sqla_100 = _vers >= (1, 0, 0)
+sqla_105 = _vers >= (1, 0, 5)
 if not sqla_07:
     raise CommandError(
         "SQLAlchemy 0.7.3 or greater is required. ")
index 19453b22b73f969c1365f13bde36ddaf4fd5b228..0ec18e2b0a6109888c4e3878e4edb33aa328d371 100644 (file)
@@ -18,7 +18,11 @@ class FullEnvironmentTests(TestBase):
     @classmethod
     def setup_class(cls):
         staging_env()
-        cls.cfg = cfg = _no_sql_testing_config("mssql")
+        if util.sqla_105:
+            directives = "sqlalchemy.legacy_schema_aliasing=false"
+        else:
+            directives = ""
+        cls.cfg = cfg = _no_sql_testing_config("mssql", directives)
 
         cls.a, cls.b, cls.c = \
             three_rev_fixture(cfg)