]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
init extra_criteria_entities in fromstatement w/ DML
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 7 Jun 2021 13:21:25 +0000 (09:21 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 7 Jun 2021 13:22:47 +0000 (09:22 -0400)
commit94169108cdd4dace09b752a6af4f4404819b49a3
tree597ebcfd3f1875e0756f41a2af91ac112920e660
parent0b33c250a8b78297690c74870a245aada5d5374e
init extra_criteria_entities in fromstatement w/ DML

Fixed issue in experimental "select ORM objects from INSERT/UPDATE" use
case where an error was raised if the statement were against a
single-table-inheritance subclass.

Additionally makes some adjustments in the SQL assertion
fixture to test a FromStatement w/ DML.

Fixes: #6591
Change-Id: I53a627ab18a01dc6d9b5037e28312a1177891327
doc/build/changelog/unreleased_14/6591.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
lib/sqlalchemy/testing/assertions.py
test/orm/inheritance/test_single.py