summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGord Thompson <gord@gordthompson.com>2020-04-08 05:40:36 -0600
committerGord Thompson <gord@gordthompson.com>2020-04-09 11:16:37 -0600
commit10fb4d4d2f755d813993852b8cb9de3a9c0a2b3f (patch)
tree8d796cfa1dbdb547929050a17fc3ad303590903a /lib
parentae26007d52caab1575a9aef4fecb90785f7e118d (diff)
downloadsqlalchemy-10fb4d4d2f755d813993852b8cb9de3a9c0a2b3f.tar.gz
Fix distinct_from test for Firebird et al.
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
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/testing/suite/test_select.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_select.py b/lib/sqlalchemy/testing/suite/test_select.py
index f9363d702..2c2317ff7 100644
--- a/lib/sqlalchemy/testing/suite/test_select.py
+++ b/lib/sqlalchemy/testing/suite/test_select.py
@@ -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}],