summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/context.py
diff options
context:
space:
mode:
authoresoh <sean.so.oh@gmail.com>2020-12-18 21:59:31 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2020-12-19 12:42:33 -0500
commitb1a24ef41ecda38add2a62e33122f2111502dbea (patch)
treeeaedb18ee9a57c2f1bf59bc1f6acbbb32ce06f10 /lib/sqlalchemy/orm/context.py
parent8294a336b1e6f23b5a7244e7aa457321fd3580bd (diff)
downloadsqlalchemy-b1a24ef41ecda38add2a62e33122f2111502dbea.tar.gz
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
Diffstat (limited to 'lib/sqlalchemy/orm/context.py')
-rw-r--r--lib/sqlalchemy/orm/context.py2
1 files changed, 1 insertions, 1 deletions
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
)