]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- some expression fixup:
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 19 Jan 2008 18:36:52 +0000 (18:36 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 19 Jan 2008 18:36:52 +0000 (18:36 +0000)
commit840a2fabb8999b4b3807dfa55d771627656ab1db
tree5486020ddf87fd932c6fd563a6319eeea8265c6f
parent6d486fb2e77e338ac4d45ff5ed45561abb5c81b3
- some expression fixup:
- the '.c.' attribute on a selectable now gets an
entry for every column expression in its columns
clause; previously, "unnamed" columns like functions
and CASE statements weren't getting put there.  Now
they will, using their full string representation
if no 'name' is available.
- The anonymous 'label' generated for otherwise
unlabeled functions and expressions now propagates
outwards at compile time for expressions like
select([select([func.foo()])])
- a CompositeSelect, i.e. any union(), union_all(),
intersect(), etc. now asserts that each selectable
contains the same number of columns.  This conforms
to the corresponding SQL requirement.
- building on the above ideas, CompositeSelects
now build up their ".c." collection based on
the names present in the first selectable only;
corresponding_column() now works fully for all
embedded selectables.
CHANGES
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/expression.py
test/sql/select.py
test/sql/selectable.py