[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: - add logic to compiler such that if stack is empty
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2014-09-02 14:52:51
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/c0af2ee6c992/ Changeset: c0af2ee6c992 Branch: None User: zzzeek Date: 2014-09-02 16:49:46 Summary: - add logic to compiler such that if stack is empty, we just stringify a _label_reference() as is. - add .key to _label_reference(), so that when _make_proxy() is called, we don't call str() on it anyway. - add a test to exercise Query's behavior of adding all the order_by expressions to the columns list of the select, assert that things work out when we have a _label_reference there, that it gets sucked into the columns list and spit out on the other side, it's referred to appropriately, etc. _label_reference() could theoretically be resolved at the point we iterate _raw_columns() but it's better to just let things work as they already do (except nicer, since we get "tablename.colname" instead of just "somename" in the columns list) so that we aren't adding a ton of overhead to _columns_plus_names in the common case. Affected #: 5 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |