]> 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 18:27:47 +0000 (12:27 -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
(cherry picked from commit 10fb4d4d2f755d813993852b8cb9de3a9c0a2b3f)

lib/sqlalchemy/testing/suite/test_select.py

index bd46b95e919662b8b50fd14ba8b12232ca17af72..65a2570cdb49b99e68171f05c2e1f316055b0062 100644 (file)
@@ -729,7 +729,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}],