diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-09-18 13:18:44 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-09-18 13:18:44 -0400 |
| commit | 003149c504149849c679a60a1f346a0f0393dce0 (patch) | |
| tree | 277f62e174b557001792168e60e8a7b288b67959 /test/sql/test_query.py | |
| parent | c9d7e387803a7cf7d3bcd22b0ba10bdbe2718e92 (diff) | |
| download | sqlalchemy-003149c504149849c679a60a1f346a0f0393dce0.tar.gz | |
- An informative error message is raised if a Column
which has not yet been assigned a name, i.e. as in
declarative, is used in a context where it is
exported to the columns collection of an enclosing
select() construct, or if any construct involving
that column is compiled before its name is
assigned. [ticket:1862]
Diffstat (limited to 'test/sql/test_query.py')
| -rw-r--r-- | test/sql/test_query.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/sql/test_query.py b/test/sql/test_query.py index 57f434a98..a87931bb3 100644 --- a/test/sql/test_query.py +++ b/test/sql/test_query.py @@ -795,7 +795,10 @@ class QueryTest(TestBase): ) shadowed.create(checkfirst=True) try: - shadowed.insert().execute(shadow_id=1, shadow_name='The Shadow', parent='The Light', row='Without light there is no shadow', _parent='Hidden parent', _row='Hidden row') + shadowed.insert().execute(shadow_id=1, shadow_name='The Shadow', parent='The Light', + row='Without light there is no shadow', + _parent='Hidden parent', + _row='Hidden row') r = shadowed.select(shadowed.c.shadow_id==1).execute().first() self.assert_(r.shadow_id == r['shadow_id'] == r[shadowed.c.shadow_id] == 1) self.assert_(r.shadow_name == r['shadow_name'] == r[shadowed.c.shadow_name] == 'The Shadow') |
