]> 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:48:05 +0000 (16:48 -0500)
commit7998f15b1687a0bd0b322d2a3afc8450d7a32503
treec82eca73d5b71c95efce9ce6301a14de76387e84
parent3eac2d89c2b7e60eeadb13571216d9c5f619e9af
- 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

(cherry picked from commit 60c36ca8418cec180733a4d97637699fa2d3c36e)
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/orm/strategies.py
test/orm/test_eager_relations.py