]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added support for parameter-ordered SET clauses in an UPDATE
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Nov 2015 19:30:05 +0000 (14:30 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Nov 2015 19:30:05 +0000 (14:30 -0500)
commitc90f0a49f332867f6b337c79ddf192299788667f
treeb806df31d3cef0fa1510bea6a46d76c0b72cf4f5
parent1202e140b9876cf202c56d2f41bbbb573e15a39d
- Added support for parameter-ordered SET clauses in an UPDATE
statement.  This feature is available by passing the
:paramref:`~.sqlalchemy.sql.expression.update.preserve_parameter_order`
flag either to the core :class:`.Update` construct or alternatively
adding it to the :paramref:`.Query.update.update_args` dictionary at
the ORM-level, also passing the parameters themselves as a list of 2-tuples.
Thanks to Gorka Eguileor for implementation and tests.
adapted from pullreq github:200
.gitignore
doc/build/changelog/changelog_10.rst
doc/build/core/tutorial.rst
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql/crud.py
lib/sqlalchemy/sql/dml.py
lib/sqlalchemy/sql/util.py
test/orm/test_cycles.py
test/orm/test_update_delete.py
test/sql/test_update.py