Re: [Sqlalchemy-tickets] [sqlalchemy] #2587: flatten joined-inheritance join targets on individual
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-05-31 19:32:13
|
#2587: flatten joined-inheritance join targets on individual tables
------------------------------+---------------------------------------
Reporter: zzzeek | Owner: zzzeek
Type: enhancement | Status: new
Priority: medium | Milestone: 0.9.0
Component: orm | Severity: very major - up to 2 days
Resolution: | Keywords:
Progress State: in queue |
------------------------------+---------------------------------------
Comment (by zzzeek):
that unnested call goes right here:
{{{
#!diff
diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py
index ddc0dd8..3e5a607 100644
--- a/lib/sqlalchemy/orm/util.py
+++ b/lib/sqlalchemy/orm/util.py
@@ -501,7 +501,7 @@ class AliasedClass(object):
use_mapper_path=False):
mapper = _class_to_mapper(cls)
if alias is None:
- alias = mapper._with_polymorphic_selectable.alias(name=name)
+ alias =
mapper._with_polymorphic_selectable.unnested_alias(name=name)
self._aliased_insp = AliasedInsp(
self,
mapper,
}}}
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2587#comment:5>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|