]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Repair and cover adaption call w/ ORM having()
authoresoh <sean.so.oh@gmail.com>
Sat, 19 Dec 2020 02:59:31 +0000 (21:59 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 19 Dec 2020 17:42:33 +0000 (12:42 -0500)
commitb1a24ef41ecda38add2a62e33122f2111502dbea
treeeaedb18ee9a57c2f1bf59bc1f6acbbb32ce06f10
parent8294a336b1e6f23b5a7244e7aa457321fd3580bd
Repair and cover adaption call w/ ORM having()

Fixed 1.4 regression where the use of :meth:`_orm.Query.having` in
conjunction with queries with internally adapted SQL elements (common in
inheritance scenarios) would fail due to an incorrect function call. Pull
request courtesy esoh.

Fixes: #5781
Closes: #5782
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/5782
Pull-request-sha: 5d37b0be0db68ec2a4dfea552ee47bcb3ef6778c

Change-Id: I123b2c0a4a23b7c7c72929dec79801726afc71ee
doc/build/changelog/unreleased_14/5781.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
test/orm/inheritance/test_polymorphic_rel.py
test/orm/inheritance/test_single.py