summaryrefslogtreecommitdiff
path: root/test/sql/selectable.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-06-07 03:02:03 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-06-07 03:02:03 +0000
commitbf8d8436ec81a1aa5ad35b849285966753cfe629 (patch)
tree8ba4a08fb5f9282eb74a2d49d8eb4f0958bb5fdf /test/sql/selectable.py
parenta74da6d21e7f5f2dd31dbaa8bc6cbf11e165360e (diff)
downloadsqlalchemy-bf8d8436ec81a1aa5ad35b849285966753cfe629.tar.gz
extra test for corresponding column fix
Diffstat (limited to 'test/sql/selectable.py')
-rwxr-xr-xtest/sql/selectable.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/sql/selectable.py b/test/sql/selectable.py
index 221d8430c..57ad99886 100755
--- a/test/sql/selectable.py
+++ b/test/sql/selectable.py
@@ -27,6 +27,11 @@ table2 = Table('table2', db,
)
class SelectableTest(testbase.AssertMixin):
+ def testjoinagainstself(self):
+ jj = select([table.c.col1.label('bar_col1')])
+ jjj = join(table, jj, table.c.col1==jj.c.bar_col1)
+ assert jjj.corresponding_column(jjj.c.table1_col1) is jjj.c.table1_col1
+
def testjoinagainstjoin(self):
j = outerjoin(table, table2, table.c.col1==table2.c.col2)
jj = select([ table.c.col1.label('bar_col1')],from_obj=[j]).alias('foo')