]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Apply consistent labeling for all future style ORM queries
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Feb 2021 19:05:49 +0000 (14:05 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 11 Feb 2021 23:25:52 +0000 (18:25 -0500)
commit553ac45aae5712e64a5380ba1fa1c6028acf5f39
tree1a165d582d7bfc1fb78f485f31f8b26d9a35eb10
parent89dc4562adb38367ee5fabbcc04ee44968af4906
Apply consistent labeling for all future style ORM queries

Fixed issue in new 1.4/2.0 style ORM queries where a statement-level label
style would not be preserved in the keys used by result rows; this has been
applied to all combinations of Core/ORM columns / session vs. connection
etc. so that the linkage from statement to result row is the same in all
cases.

also repairs a cache key bug where query.from_statement()
vs. select().from_statement() would not be disambiguated; the
compile options were not included in the cache key for
FromStatement.

Fixes: #5933
Change-Id: I22f6cf0f0b3360e55299cdcb2452cead2b2458ea
doc/build/changelog/unreleased_14/5933.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
lib/sqlalchemy/orm/loading.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/selectable.py
test/orm/test_cache_key.py
test/orm/test_query.py
test/sql/test_compare.py
test/sql/test_selectable.py