]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
correct test criteria for mssql
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 27 Sep 2022 14:23:28 +0000 (10:23 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 27 Sep 2022 14:23:28 +0000 (10:23 -0400)
this test was failing on mssql b.c. mssql
reports false for supports_default_metavalue. however
insertmanyvalues is still used in this case, and the
assert SQL is against the default dialect in any case.

Change-Id: If8301bf4c1ed090dd1440328aba1644b597e58d8

test/orm/inheritance/test_basic.py

index 5f8cfc1f56779bfa19f9e3365d5c427c84bbc202..87c61d3952db60e339711de1d329484354760346 100644 (file)
@@ -2008,8 +2008,7 @@ class JoinedNoFKSortingTest(fixtures.MappedTest):
             testing.db,
             sess.flush,
             Conditional(
-                testing.db.dialect.insert_executemany_returning
-                and testing.db.dialect.supports_default_metavalue,
+                testing.db.dialect.insert_executemany_returning,
                 [
                     CompiledSQL(
                         "INSERT INTO a (id) VALUES (DEFAULT) RETURNING a.id",