diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-09-25 22:31:16 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-10-31 13:44:53 -0400 |
commit | 654b462d668a2ced4e87077b9babb2590acbf983 (patch) | |
tree | 8b6023480423e990c9bbca7c280cb1cb58e012fc /test/sql/test_metadata.py | |
parent | 841eb216644202567ebddfc0badc51a3a35e98c3 (diff) | |
download | sqlalchemy-review/mike_bayer/tutorial20.tar.gz |
tutorial 2.0 WIPreview/mike_bayer/tutorial20
Add SelectBase.exists() method as it seems strange this is
not available already. The Exists construct itself does
not provide full SELECT-building capabilities so it makes
sense this should be used more like a scalar_subquery.
Make sure stream_results is getting set up when yield_per
is used, for 2.0 style statements as well. this was
hardcoded inside of Query.yield_per() and is now moved
to take place within QueryContext.
Change-Id: Icafcd4fd9b708772343d56edf40995c9e8f835d6
Diffstat (limited to 'test/sql/test_metadata.py')
-rw-r--r-- | test/sql/test_metadata.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sql/test_metadata.py b/test/sql/test_metadata.py index 980e2886a..b2dae4b22 100644 --- a/test/sql/test_metadata.py +++ b/test/sql/test_metadata.py @@ -741,7 +741,7 @@ class MetaDataTest(fixtures.TestBase, ComparesTables): ), ( Table("bar", MetaData(), Column("x", String)), - "Table('bar', MetaData(bind=None), " + "Table('bar', MetaData(), " "Column('x', String(), table=<bar>), schema=None)", ), ( @@ -4138,13 +4138,13 @@ class CatchAllEventsTest(fixtures.RemovesEvents, fixtures.TestBase): "Column->t1", "ForeignKeyConstraint->Table", "ForeignKeyConstraint->t1", - "Table->MetaData(bind=None)", + "Table->MetaData()", "Table->MetaData", "PrimaryKeyConstraint->Table", "PrimaryKeyConstraint->t2", "Column->Table", "Column->t2", - "Table->MetaData(bind=None)", + "Table->MetaData()", ], ) |