summaryrefslogtreecommitdiff
path: root/test/sql/test_compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-04-24 11:24:23 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-04-24 11:24:23 -0400
commit9b73e997b2325018555268e1f1069e88e80fdb85 (patch)
tree6cd512b1a8395f8dd9edb5915323603ef108db70 /test/sql/test_compiler.py
parent3d4c6f68167d33b28e0c3b12032058ad0d807d58 (diff)
downloadsqlalchemy-9b73e997b2325018555268e1f1069e88e80fdb85.tar.gz
- [bug] The names of the columns on the
.c. attribute of a select().apply_labels() is now based on <tablename>_<colkey> instead of <tablename>_<colname>, for those columns that have a distinctly named .key. [ticket:2397]
Diffstat (limited to 'test/sql/test_compiler.py')
-rw-r--r--test/sql/test_compiler.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/sql/test_compiler.py b/test/sql/test_compiler.py
index feb7405db..d5d5eaa2d 100644
--- a/test/sql/test_compiler.py
+++ b/test/sql/test_compiler.py
@@ -248,14 +248,12 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL):
"SELECT sum(lala(mytable.myid)) AS bar FROM mytable"
)
- # changes with #2397
self.assert_compile(
select([keyed]),
"SELECT keyed.x, keyed.y"
", keyed.z FROM keyed"
)
- # changes with #2397
self.assert_compile(
select([keyed]).apply_labels(),
"SELECT keyed.x AS keyed_x, keyed.y AS "
@@ -316,7 +314,6 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL):
)
# using alternate keys.
- # this will change with #2397
a, b, c = Column('a', Integer, key='b'), \
Column('b', Integer), \
Column('c', Integer, key='a')
@@ -370,7 +367,6 @@ class SelectTest(fixtures.TestBase, AssertsCompiledSQL):
'AS anon_1')
def test_nested_label_targeting_keyed(self):
- # this behavior chagnes with #2397
s1 = keyed.select()
s2 = s1.alias()
s3 = select([s2], use_labels=True)