]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The multi-values version of :meth:`.Insert.values` has been
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 13 Jan 2015 19:33:33 +0000 (14:33 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 13 Jan 2015 19:33:33 +0000 (14:33 -0500)
commit92cc232726a01dd3beff762ebccd326a9659e8b9
treea33faba2cdadd6f016feaff214fb8e2f5ecdbdb3
parentdc55ff6f99098450f20aa702a55ece30b7e5fc7c
- The multi-values version of :meth:`.Insert.values` has been
repaired to work more usefully with tables that have Python-
side default values and/or functions, as well as server-side
defaults. The feature will now work with a dialect that uses
"positional" parameters; a Python callable will also be
invoked individually for each row just as is the case with an
"executemany" style invocation; a server- side default column
will no longer implicitly receive the value explicitly
specified for the first row, instead refusing to invoke
without an explicit value. fixes #3288
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/sql/crud.py
lib/sqlalchemy/sql/dml.py
lib/sqlalchemy/testing/assertions.py
test/sql/test_defaults.py
test/sql/test_insert.py