summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-12-04 12:02:37 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2022-12-05 17:22:04 -0500
commit54db0518b0fe7a4a0b7d03b83aed6e7b6fa12e1b (patch)
tree9d14d4023ab0d5ad4f9a56339cbff78b92142dc1 /lib/sqlalchemy/sql
parent679b3f7e100e40b36d6d0abb947bd62589ef3e05 (diff)
downloadsqlalchemy-54db0518b0fe7a4a0b7d03b83aed6e7b6fa12e1b.tar.gz
Add tests for issue #8168; slight internal adjustments
The issue in #8168 was improved, but not completely fixed, by #8456. This includes some small changes to ORM context that are a prerequisite for getting ORM adaptation to be better. Have these in 2.0.0b4 so that we have at least a better starting point. References: #8168 Change-Id: I51dbe333b156048836d074fbba1d850f9eb67fd2
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r--lib/sqlalchemy/sql/util.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/util.py b/lib/sqlalchemy/sql/util.py
index 14cbe2456..d162428ec 100644
--- a/lib/sqlalchemy/sql/util.py
+++ b/lib/sqlalchemy/sql/util.py
@@ -1139,7 +1139,6 @@ class ClauseAdapter(visitors.ReplacingExternalTraversal):
if isinstance(col, FromClause) and not isinstance(
col, functions.FunctionElement
):
-
if self.selectable.is_derived_from(col):
if self.adapt_from_selectables:
for adp in self.adapt_from_selectables: