diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-06-27 19:25:35 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-06-27 19:25:35 -0400 |
| commit | 668991a7ed3a46e29ab76cd0278b021e5190b103 (patch) | |
| tree | b15a912e26af60a5f5134c94baffa560b1915276 /test/sql/test_selectable.py | |
| parent | 63dbed1fd7421fd4f5cbf0bb2773f7faa8359651 (diff) | |
| download | sqlalchemy-668991a7ed3a46e29ab76cd0278b021e5190b103.tar.gz | |
- Fixed subtle bug that caused SQL to blow
up if: column_property() against subquery +
joinedload + LIMIT + order by the column
property() occurred. [ticket:2188].
Also in 0.6.9
Diffstat (limited to 'test/sql/test_selectable.py')
| -rw-r--r-- | test/sql/test_selectable.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/sql/test_selectable.py b/test/sql/test_selectable.py index debdd0bb7..63be50a97 100644 --- a/test/sql/test_selectable.py +++ b/test/sql/test_selectable.py @@ -64,7 +64,16 @@ class SelectableTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiled assert s1.corresponding_column(scalar_select) is s1.c.foo assert s2.corresponding_column(scalar_select) is s2.c.foo - + + def test_label_grouped_still_corresponds(self): + label = select([table1.c.col1]).label('foo') + label2 = label.self_group() + + s1 = select([label]) + s2 = select([label2]) + assert s1.corresponding_column(label) is s1.c.foo + assert s2.corresponding_column(label) is s2.c.foo + def test_direct_correspondence_on_labels(self): # this test depends on labels being part # of the proxy set to get the right result |
