summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/query.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-06-04 14:30:29 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-06-04 14:30:29 -0400
commit9998e9e0131ff83a4e38e3c17a835a0854789174 (patch)
tree5bfe2cd41b4d2bfef1a0119bdfe85af45b1749d3 /lib/sqlalchemy/orm/query.py
parent822786dfaea7a56b16669561b4818ca1bf3a800f (diff)
downloadsqlalchemy-9998e9e0131ff83a4e38e3c17a835a0854789174.tar.gz
rewriting scheme now works.
Diffstat (limited to 'lib/sqlalchemy/orm/query.py')
-rw-r--r--lib/sqlalchemy/orm/query.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py
index 502b54f29..8ab81cb13 100644
--- a/lib/sqlalchemy/orm/query.py
+++ b/lib/sqlalchemy/orm/query.py
@@ -1889,12 +1889,9 @@ class Query(object):
aliased_entity = right_mapper and \
not right_is_aliased and \
(
- # TODO: this produces queries that fail the
- # compiler transformation in test_polymorphic_rel
- isinstance(right_mapper._with_polymorphic_selectable, expression.Alias)
-
- # current
- # right_mapper.with_polymorphic
+ isinstance(
+ right_mapper._with_polymorphic_selectable,
+ expression.Alias)
or
overlap # test for overlap:
# orm/inheritance/relationships.py