]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- :class:`.Query` doesn't support joins, subselects, or special
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 1 Apr 2015 23:18:36 +0000 (19:18 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 1 Apr 2015 23:37:43 +0000 (19:37 -0400)
commitfe1922764151454460dfabfd574d3ead12edf543
tree922676252957e7ad8e478159823545d9a11e1077
parent59816435dae75db9712f80c34734813a0246205a
- :class:`.Query` doesn't support joins, subselects, or special
FROM clauses when using the :meth:`.Query.update` or
:meth:`.Query.delete` methods; instead of silently ignoring these
fields if methods like :meth:`.Query.join` or
:meth:`.Query.select_from` has been called, an error is raised.
In 0.9.10 this only emits a warning.
fixes #3349
- don't needlessly call _compile_context() and build up a
whole statement that we never need.  Construct QueryContext
as it's part of the event contract, but don't actually call upon
mapper attributes; use more direct systems of determining the
update or delete table.
- don't realy need _no_select_modifiers anymore
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/orm/query.py
test/orm/test_query.py
test/orm/test_update_delete.py