]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix distinct_from test for Firebird et al.
authorGord Thompson <gord@gordthompson.com>
Wed, 8 Apr 2020 11:40:36 +0000 (05:40 -0600)
committerGord Thompson <gord@gordthompson.com>
Thu, 9 Apr 2020 17:16:37 +0000 (11:16 -0600)
Firebird (and perhaps others) allow us to CREATE TABLE inside a transaction but we can't INSERT INTO that table unless we COMMIT first.

Change-Id: Ie8127ef29f1ec91e7afb88e1429538c27a321784

lib/sqlalchemy/testing/suite/test_select.py

index f9363d70204de706da7ead5211012a9c892c0ff3..2c2317ff76bddea747e24947993acf686437c80d 100644 (file)
@@ -1036,7 +1036,7 @@ class IsOrIsNotDistinctFromTest(fixtures.TablesTest):
             Column("col_a", Integer, nullable=True),
             Column("col_b", Integer, nullable=True),
         )
-        tbl.create(connection)
+        meta.create_all()
         connection.execute(
             tbl.insert(),
             [{"id": 1, "col_a": col_a_value, "col_b": col_b_value}],