Re: [Sqlalchemy-tickets] [sqlalchemy] #2932: textasfrom compatibility with columns, query
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2014-02-07 18:43:33
|
#2932: textasfrom compatibility with columns, query
------------------------------+-------------------------------
Reporter: zzzeek | Owner: zzzeek
Type: defect | Status: reopened
Priority: highest | Milestone: 0.9.3
Component: sql | Severity: major - 1-3 hours
Resolution: | Keywords:
Progress State: in progress |
------------------------------+-------------------------------
Comment (by zzzeek):
maybe column.make_proxy() should have a little more going on - not just
_proxies, but also, "_lookup_equivalent", which is flagged for both a
select() and a text() when it makes the initial column proxy. that gets
added to the result_map. _lookup_equivalent gets erased for any proxies
subsequent to that, e.g. such as aliased().
the fact that a select() is never embedded as a subquery without being an
alias might work well with this concept.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2932#comment:7>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|