diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-12-10 04:31:17 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-12-10 04:31:17 +0000 |
| commit | 41df778985ce5b99935ff4b1ffa0c7249a03a83a (patch) | |
| tree | 7454bada25153ba8091ee6df0a08b1307dbd609b /test/sql/selectable.py | |
| parent | 5cdb942791b9aeb63d02680c712d1afc104606b0 (diff) | |
| download | sqlalchemy-41df778985ce5b99935ff4b1ffa0c7249a03a83a.tar.gz | |
- more query tests
- trying to refine some of the adaptation stuff
- query.from_statement() wont allow further generative criterion
- added a warning to columncollection when selectable is formed with
conflicting columns (only in the col export phase)
- some method rearrangement on schema/columncollection....
- property conflicting relation warning doesnt raise for concrete
Diffstat (limited to 'test/sql/selectable.py')
| -rwxr-xr-x | test/sql/selectable.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/sql/selectable.py b/test/sql/selectable.py index 49a61bf2b..4796288df 100755 --- a/test/sql/selectable.py +++ b/test/sql/selectable.py @@ -47,7 +47,10 @@ class SelectableTest(AssertMixin): j2 = jjj.alias('foo') assert j2.corresponding_column(table.c.col1) is j2.c.table1_col1 - + def testselectontable(self): + sel = select([table, table2], use_labels=True) + assert sel.corresponding_column(table.c.col1) is sel.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') |
