]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- an executemany() now requires that all bound parameter
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Oct 2009 18:41:02 +0000 (18:41 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Oct 2009 18:41:02 +0000 (18:41 +0000)
commitc5571ab19a155f0c11381d65edc07c16902f3fad
tree91d1177483fccf28f5527b1842f838c4623013fe
parentbc351a2dc423987f05f4bf88db4987be507ee0a1
- an executemany() now requires that all bound parameter
sets require that all keys are present which are
present in the first bound parameter set.  The structure
and behavior of an insert/update statement is very much
determined by the first parameter set, including which
defaults are going to fire off, and a minimum of
guesswork is performed with all the rest so that performance
is not impacted.  For this reason defaults would otherwise
silently "fail" for missing parameters, so this is now guarded
against. [ticket:1566]
CHANGES
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/schema.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/expression.py
test/sql/test_defaults.py
test/sql/test_query.py