From b1a24ef41ecda38add2a62e33122f2111502dbea Mon Sep 17 00:00:00 2001 From: esoh Date: Fri, 18 Dec 2020 21:59:31 -0500 Subject: 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 --- lib/sqlalchemy/orm/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/orm/context.py') diff --git a/lib/sqlalchemy/orm/context.py b/lib/sqlalchemy/orm/context.py index cd654ed3d..41b2146a3 100644 --- a/lib/sqlalchemy/orm/context.py +++ b/lib/sqlalchemy/orm/context.py @@ -585,7 +585,7 @@ class ORMSelectCompileState(ORMCompileState, SelectState): if query._having_criteria: self._having_criteria = tuple( - current_adapter(crit, True, True) if current_adapter else crit + current_adapter(crit, True) if current_adapter else crit for crit in query._having_criteria ) -- cgit v1.2.1