[Sqlalchemy-tickets] [sqlalchemy] #2736: remove auto-aliasing from select_from()
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-05-30 23:06:46
|
#2736: remove auto-aliasing from select_from()
--------------------+---------------------------------------
Reporter: zzzeek | Owner: zzzeek
Type: defect | Status: new
Priority: high | Milestone: 0.9.0
Component: orm | Severity: minor - half an hour
Keywords: | Progress State: in progress
--------------------+---------------------------------------
The original use for select_from() is becoming obsolete. You can query
from a selectable and replace the primary entity using `aliased()`. The
behavior of `select_from()` where it applies the selectable as an alias to
the existing entities is unexpected behavior at this point as most users
are just trying to set up the FROM clause for a JOIN. The attached patch
changes this so that the old functionality is available via
`select_entity_from()`.
The `select_entity_from()` method can be added to 0.8 so that users have
an upgrade path into 0.9.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2736>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|