From 668991a7ed3a46e29ab76cd0278b021e5190b103 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 27 Jun 2011 19:25:35 -0400 Subject: - 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 --- test/sql/test_selectable.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'test/sql/test_selectable.py') 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 -- cgit v1.2.1