]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [bug] Fixed bug whereby column_property() created
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 4 Dec 2011 00:50:01 +0000 (19:50 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 4 Dec 2011 00:50:01 +0000 (19:50 -0500)
commit699146086df8fd8778582a03267f8f28c5cdad7a
tree80118f3c361508f0aab5f10995f96870bdc8cc5d
parentd628967ad21ab103f3c2766728a5b18923348795
- [bug] Fixed bug whereby column_property() created
against ORM-level column could be treated as
a distinct entity when producing certain
kinds of joined-inh joins.  [ticket:2316]

- [bug] related to [ticket:2316], made some
adjustments to the change from [ticket:2261]
regarding the "from" list on a select(). The
_froms collection is no longer memoized, as this
simplifies various use cases and removes the
need for a "warning" if a column is attached
to a table after it was already used in an
expression - the select() construct will now
always produce the correct expression.
There's probably no real-world
performance hit here; select() objects are
almost always made ad-hoc, and systems that
wish to optimize the re-use of a select()
would be using the "compiled_cache" feature.
A hit which would occur when calling select.bind
has been reduced, but the vast majority
of users shouldn't be using "bound metadata"
anyway :).
CHANGES
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/sql/expression.py
test/aaa_profiling/test_orm.py
test/aaa_profiling/test_zoomark.py
test/aaa_profiling/test_zoomark_orm.py
test/ext/test_declarative.py
test/orm/test_mapper.py
test/sql/test_selectable.py