diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-04-22 19:43:31 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-04-22 19:43:31 -0400 |
| commit | 713a4e19fa6c4397191dd7311152c6c69c37535e (patch) | |
| tree | cc73d61aa1275e65378f0c618ee3756836ac943e /test/orm/test_mapper.py | |
| parent | 02e8d401fea0c77a60efcdd1138cf29b30384219 (diff) | |
| parent | 35adeb95bf917330e1366f8a7252999419819fb1 (diff) | |
| download | sqlalchemy-713a4e19fa6c4397191dd7311152c6c69c37535e.tar.gz | |
- merged #1401 branch from bitbucket
- resolved some serious speed hits I missed, we need to ensure
only deannotated columns are used in the local/remote collections and soforth
so that hash lookups against mapped columns don't dig into __eq__()
- fix some other parity mismatches regarding stuff from [ticket:2453],
including finding another case where _deep_annotate() was doing the wrong thing,
new tests.
- [feature] Major rewrite of relationship()
internals now allow join conditions which
include columns pointing to themselves
within composite foreign keys. A new
API for very specialized primaryjoin conditions
is added, allowing conditions based on
SQL functions, CAST, etc. to be handled
by placing the annotation functions
remote() and foreign() inline within the
expression when necessary. Previous recipes
using the semi-private _local_remote_pairs
approach can be upgraded to this new
approach. [ticket:1401]
Diffstat (limited to 'test/orm/test_mapper.py')
| -rw-r--r-- | test/orm/test_mapper.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/orm/test_mapper.py b/test/orm/test_mapper.py index 79ae7ff59..4478e5d80 100644 --- a/test/orm/test_mapper.py +++ b/test/orm/test_mapper.py @@ -522,6 +522,8 @@ class MapperTest(_fixtures.FixtureTest, AssertsCompiledSQL): assert User.x.property.columns[0] is not expr assert User.x.property.columns[0].element.left is users.c.name + # a deannotate needs to clone the base, in case + # the original one referenced annotated elements. assert User.x.property.columns[0].element.right is not expr.right assert User.y.property.columns[0] is not expr2 |
