]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed issue within the :meth:`.Insert.from_select` construct whereby
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 9 Dec 2015 23:15:25 +0000 (18:15 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 9 Dec 2015 23:15:57 +0000 (18:15 -0500)
commit6d44b01263011fbe6f031b4979c41d96f9e0331c
treedbfc1128f64fb89dd813ae68b9347576760d3286
parent67b22cee3ab2c17b61100f1ccd69081082c0f074
- Fixed issue within the :meth:`.Insert.from_select` construct whereby
the :class:`.Select` construct would have its ``._raw_columns``
collection mutated in-place when compiling the :class:`.Insert`
construct, when the target :class:`.Table` has Python-side defaults.
The :class:`.Select` construct would compile standalone with the
erroneous column present subsequent to compilation of the
:class:`.Insert`, and the the :class:`.Insert` statement itself would
fail on a second compile attempt due to duplicate bound parameters.
fixes #3603

(cherry picked from commit e57bf796169282f69187f50665f5ea233c2c9ab7)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/sql/crud.py
test/sql/test_insert.py