[Sqlalchemy-tickets] Issue #3385: ColumnElement with label() is incorrectly referenced in group_by/
Brought to you by:
zzzeek
|
From: Andrey S. <iss...@bi...> - 2015-04-24 12:55:45
|
New issue 3385: ColumnElement with label() is incorrectly referenced in group_by/order_by producing invalid query https://bitbucket.org/zzzeek/sqlalchemy/issue/3385/columnelement-with-label-is-incorrectly Andrey Semenov: https://gist.github.com/SantjagoCorkez/db207a7b533d1d6f05ae When providing a ColumnElement itself into .group_by()/.order_by() the query compiler does not automatically quote the reference to that producing a query that in some circumstances becomes invalid (for example in case there are columns with the same name as the ColumnElement's label within the query). This became an issue at 1.0.0 (and not resolved in 1.0.1) |