]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- the value of a bindparam() can be a callable, in which
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 22 Feb 2008 23:17:15 +0000 (23:17 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 22 Feb 2008 23:17:15 +0000 (23:17 +0000)
commitbb6ec17708e56170bcccf7e32703d0ba37b160d2
tree1da7768491154707db045c235f1ba6f2170a02e7
parente203b4dd4e2ce24e18fbeb9db515b2bdbbb56bc5
- the value of a bindparam() can be a callable, in which
case it's evaluated at statement execution time to
get the value.
- expressions used in filter(), filter_by() and others,
when they make usage of a clause generated from a
relation using the identity of a child object
(e.g. filter(Parent.child==<somechild>)), evaluate
the actual primary key value of <somechild> at
execution time so that the autoflush step of the
Query can complete, thereby populating the PK value
of <somechild> in the case that <somechild> was
pending.
- cleanup of attributes.get_committed_value() to never return
the NO_VALUE value; evaluates to None
CHANGES
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/unitofwork.py
lib/sqlalchemy/sql/compiler.py
test/orm/attributes.py
test/orm/session.py