]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- [feature] The Query.update() method is now
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Aug 2012 22:18:17 +0000 (18:18 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Aug 2012 22:18:17 +0000 (18:18 -0400)
commit2ccd77e5dc6e389159a64f7aed39b9785580a01c
tree05897cd208a950c782c454a3b2e016a7e7a9b919
parentaef0c7a903464f4e05496c69ff4e78d41239c220
- [feature] The Query.update() method is now
more lenient as to the table
being updated.  Plain Table objects are better
supported now, and additional a joined-inheritance
subclass may be used with update(); the subclass
table will be the target of the update,
and if the parent table is referenced in the
WHERE clause, the compiler will call upon
UPDATE..FROM syntax as allowed by the dialect
to satisfy the WHERE clause.  Target columns
must still be in the target table i.e.
does not support MySQL's multi-table update
feature (even though this is in Core).
PG's DELETE..USING is also not available
in Core yet.
CHANGES
lib/sqlalchemy/orm/persistence.py
test/dialect/test_postgresql.py
test/lib/fixtures.py
test/orm/test_of_type.py
test/orm/test_update_delete.py