]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- bindparam() gets a new option "callable", which is a lambda or def
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Nov 2010 20:43:12 +0000 (15:43 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Nov 2010 20:43:12 +0000 (15:43 -0500)
commitea55a4644c63358324ce4066c501c048c7a661a6
tree5178212f990adab3b69a1b6a0b55e4a3aceed51e
parente3ca3a773ff8c36126fe584b69e380c67791e2bf
- bindparam() gets a new option "callable", which is a lambda or def
evaluated at execution time to determine the value.  This replaces
the implicit recognition of callables sent as the primary value
of bindparam(), which was an undocumented behavior used by the ORM.
The argument is separated now so that values can be passed to
bindparams that are also callables without ambiguity, such
as user defined objects that include a __call__() method.
[ticket:1950]
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/expression.py
test/sql/test_compiler.py