diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-06-04 21:36:34 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-06-04 21:36:34 -0400 |
| commit | 69e9574fefd5fbb4673c99ad476a00b03fe22318 (patch) | |
| tree | 5e02b7f3ead639e242bc3fb65c52dbea95fb9e6d /test/sql | |
| parent | ae2561a7d1495d0d542571ae65b4ce1377eddf00 (diff) | |
| download | sqlalchemy-69e9574fefd5fbb4673c99ad476a00b03fe22318.tar.gz | |
- add coverage for result map rewriting
- fix the result map rewriter for col mismatches, since the rewritten
select at the moment typically has more columns than the original
Diffstat (limited to 'test/sql')
| -rw-r--r-- | test/sql/test_join_rewriting.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sql/test_join_rewriting.py b/test/sql/test_join_rewriting.py index 701d25887..5a9bdd1d3 100644 --- a/test/sql/test_join_rewriting.py +++ b/test/sql/test_join_rewriting.py @@ -37,6 +37,12 @@ class _JoinRewriteTestBase(AssertsCompiledSQL): assert_ ) + compiled = s.compile(dialect=self.__dialect__) + for key, col in zip([c.key for c in s.c], s.inner_columns): + key = key % compiled.anon_map + assert col in compiled.result_map[key][1] + + def test_a_bc(self): j1 = b.join(c) j2 = a.join(j1) |
