]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed the multiple-table "UPDATE..FROM" construct, only usable on
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 21 Jan 2014 02:01:35 +0000 (21:01 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 21 Jan 2014 02:17:42 +0000 (21:17 -0500)
commitb9318c98637bbd5c19267728fcfe941668345325
tree10e97a4ee419b1eeeb8073ac4e516fd0592fc510
parentf8d45fd5666c6d0285576798ecd4c409909fe810
- Fixed the multiple-table "UPDATE..FROM" construct, only usable on
MySQL, to correctly render the SET clause among multiple columns
with the same name across tables.  This also changes the name used for
the bound parameter in the SET clause to "<tablename>_<colname>" for
the non-primary table only; as this parameter is typically specified
using the :class:`.Column` object directly this should not have an
impact on applications.   The fix takes effect for both
:meth:`.Table.update` as well as :meth:`.Query.update` in the ORM.
[ticket:2912]
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/sql/compiler.py
test/orm/test_update_delete.py
test/sql/test_update.py