]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed joinedload bug which would occur when a. the query includes
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 21 Nov 2015 21:36:50 +0000 (16:36 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 21 Nov 2015 21:36:50 +0000 (16:36 -0500)
commit60c36ca8418cec180733a4d97637699fa2d3c36e
treeb8d5c95b22bfb041ce6ac43f57cd1d21993946bd
parent068d37035a5d0004dc93712f4fa88703aefa4076
- Fixed joinedload bug which would occur when a. the query includes
limit/offset criteria that forces a subquery b. the relationship
uses "secondary" c. the primaryjoin of the relationship refers to
a column that is either not part of the primary key, or is a PK
col in a joined-inheritance subclass table that is under a different
attribute name than the parent table's primary key column d. the
query defers the columns that are present in the primaryjoin, typically
via not being included in load_only(); the necessary column(s) would
not be present in the subquery and produce invalid SQL.
fixes #3592
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/strategies.py
test/orm/test_eager_relations.py