diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-07-27 16:46:11 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-07-27 16:46:11 +0000 |
commit | 8db97dad9845b8d405412abbf713d2d22538b9cc (patch) | |
tree | d8531cb3644340707b4248e2721968359e232740 /test/sql/generative.py | |
parent | 7252e3d879483cc14be5d1b95004843e69e35aab (diff) | |
download | sqlalchemy-8db97dad9845b8d405412abbf713d2d22538b9cc.tar.gz |
fixed glitch in Select visit traversal, fixes #693
Diffstat (limited to 'test/sql/generative.py')
-rw-r--r-- | test/sql/generative.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/sql/generative.py b/test/sql/generative.py index 357a66fcd..80a18d497 100644 --- a/test/sql/generative.py +++ b/test/sql/generative.py @@ -166,10 +166,9 @@ class ClauseTest(selecttests.SQLTest): assert str(clause2) == str(t1.join(t2, t1.c.col2==t2.c.col3)) def test_select(self): - s = t1.select() - s2 = select([s]) + s2 = select([t1]) s2_assert = str(s2) - s3_assert = str(select([t1.select()], t1.c.col2==7)) + s3_assert = str(select([t1], t1.c.col2==7)) class Vis(ClauseVisitor): def visit_select(self, select): select.append_whereclause(t1.c.col2==7) @@ -183,7 +182,7 @@ class ClauseTest(selecttests.SQLTest): print "------------------" - s4_assert = str(select([t1.select()], and_(t1.c.col2==7, t1.c.col3==9))) + s4_assert = str(select([t1], and_(t1.c.col2==7, t1.c.col3==9))) class Vis(ClauseVisitor): def visit_select(self, select): select.append_whereclause(t1.c.col3==9) @@ -194,7 +193,7 @@ class ClauseTest(selecttests.SQLTest): assert str(s3) == s3_assert print "------------------" - s5_assert = str(select([t1.select()], and_(t1.c.col2==7, t1.c.col1==9))) + s5_assert = str(select([t1], and_(t1.c.col2==7, t1.c.col1==9))) class Vis(ClauseVisitor): def visit_binary(self, binary): if binary.left is t1.c.col3: |