]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure synchronize_session works with lambda statements
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 5 Jul 2020 17:44:58 +0000 (13:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 5 Jul 2020 18:45:35 +0000 (14:45 -0400)
commitc6c9d5f925e4418c10c93c47fef53200dca11f00
tree534d8864c52a811fb57af5895ca33a8c4a786bb7
parent9204b6610c9667ba2e4f73440339d2f520631777
Ensure synchronize_session works with lambda statements

A few places have logic that assumes the top-level statement
is the actual UPDATE or DELETE which is not the case with a
lambda.  Ensure the correct object is used.  This
fixes issues specific to both "fetch" strategy
as well as "evaluate" strategy.

Fixes: #5442
Change-Id: Ic9cc01c696c3c338d5bc79688507e6717c4c169b
lib/sqlalchemy/orm/persistence.py
test/orm/test_update_delete.py