]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The :meth:`.Query.update` method will now convert string key
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 16 Oct 2014 18:36:56 +0000 (14:36 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 16 Oct 2014 18:36:56 +0000 (14:36 -0400)
commit61a4a89d993eda1d3168b501ba9ed8d94ea9b5f8
treec98b87e0a489c668acd119800c8a946dc7fdf9d4
parenta02664869c0991fb8de6d6ddd0f189c5987e9782
- The :meth:`.Query.update` method will now convert string key
names in the given dictionary of values into mapped attribute names
against the mapped class being updated.  Previously, string names
were taken in directly and passed to the core update statement without
any means to resolve against the mapped entity.  Support for synonyms
and hybrid attributes as the subject attributes of
:meth:`.Query.update` are also supported.
fixes #3228
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/orm/query.py
test/orm/test_update_delete.py