]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
simplify unmapped col eval fallback
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Oct 2022 15:53:07 +0000 (11:53 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Oct 2022 15:55:04 +0000 (11:55 -0400)
commit8db3744f9f787a0e5f5464b6abd4e45ec787221d
tree22183304f018de2fee0c22bd11ccbe0b97d1b5d6
parent93acfe8815a94a3e4169fce586b9248b7682ab6e
simplify unmapped col eval fallback

Removed the warning that emits when using ORM-enabled update/delete
regarding evaluation of columns by name, first added in :ticket:`4073`;
this warning actually covers up a scenario that otherwise could populate
the wrong Python value for an ORM mapped attribute depending on what the
actual column is, so this deprecated case is removed. In 2.0, ORM enabled
update/delete uses "auto" for "synchronize_session", which should do the
right thing automatically for any given UPDATE expression.

Fixes: #8656
Change-Id: Idb8b4a86d3caed89f69cde1607886face103cf6a
doc/build/changelog/unreleased_20/8656.rst [new file with mode: 0644]
lib/sqlalchemy/orm/evaluator.py
lib/sqlalchemy/orm/relationships.py
test/orm/dml/test_evaluator.py
test/orm/dml/test_update_delete_where.py