]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
implement cache key for return_defaults token
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Jul 2021 15:18:01 +0000 (11:18 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Jul 2021 17:57:22 +0000 (13:57 -0400)
commita34a4af8a80f4edd12b022753b69065025818e20
tree379a4060304439f46a6515b9b8c6cd74553c477e
parente7119aea7870f0322e78d3a2cb28337b1640f0c2
implement cache key for return_defaults token

Fixed critical caching issue where the ORM's persistence feature using
INSERT..RETURNING would cache an incorrect query when mixing the "bulk
save" and standard "flush" forms of INSERT.

Fixes: #6793
Change-Id: Ifeb61c1226d3fa6d5e1c2e29b6f5ff77a27d6a2d
doc/build/changelog/unreleased_14/6793.rst [new file with mode: 0644]
lib/sqlalchemy/sql/crud.py
lib/sqlalchemy/sql/dml.py
test/orm/test_bulk.py
test/sql/test_compare.py