summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-04-02 15:48:54 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-04-02 15:48:54 +0000
commitcc50b83de913edf96d16c6b7572124759e2e99e0 (patch)
tree718fdeb093f2973abcc85c6b9f5558d9ac2904d0 /lib/sqlalchemy/sql
parent4148c83f19d5a17a4da9ae4102e29e97ff76bd47 (diff)
parenta16687b3fc4179e8f42d8099aa6d1e6d18fedf70 (diff)
downloadsqlalchemy-cc50b83de913edf96d16c6b7572124759e2e99e0.tar.gz
Merge "Ensure Grouping._with_binary_element_type() maintains class"
Diffstat (limited to 'lib/sqlalchemy/sql')
-rw-r--r--lib/sqlalchemy/sql/elements.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index 7a27690b8..c48338303 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -3764,7 +3764,7 @@ class Grouping(GroupedElement, ColumnElement):
self.type = getattr(element, "type", type_api.NULLTYPE)
def _with_binary_element_type(self, type_):
- return Grouping(self.element._with_binary_element_type(type_))
+ return self.__class__(self.element._with_binary_element_type(type_))
@util.memoized_property
def _is_implicitly_boolean(self):