diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2022-09-26 02:33:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-09-26 02:33:19 +0000 |
| commit | 1657cea73d5ec9aeedd541001e125e03e581a34b (patch) | |
| tree | b1d8527435fa51f7cec399972ea5af29d4f74a67 /lib/sqlalchemy/dialects/postgresql | |
| parent | e708cfea0bdaae82ac30dd7d33f9442115b9af6d (diff) | |
| parent | c86ec8f8c98b756ef06933174a3f4a0f3cfbed41 (diff) | |
| download | sqlalchemy-1657cea73d5ec9aeedd541001e125e03e581a34b.tar.gz | |
Merge "`aggregate_order_by` now supports cache generation." into main
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql')
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/ext.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/ext.py b/lib/sqlalchemy/dialects/postgresql/ext.py index 0192cf581..ebaad2734 100644 --- a/lib/sqlalchemy/dialects/postgresql/ext.py +++ b/lib/sqlalchemy/dialects/postgresql/ext.py @@ -5,8 +5,10 @@ # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php # mypy: ignore-errors +from __future__ import annotations from itertools import zip_longest +from typing import TYPE_CHECKING from .array import ARRAY from ...sql import coercions @@ -16,6 +18,10 @@ from ...sql import functions from ...sql import roles from ...sql import schema from ...sql.schema import ColumnCollectionConstraint +from ...sql.visitors import InternalTraversal + +if TYPE_CHECKING: + from ...sql.visitors import _TraverseInternalsType class aggregate_order_by(expression.ColumnElement): @@ -56,7 +62,11 @@ class aggregate_order_by(expression.ColumnElement): __visit_name__ = "aggregate_order_by" stringify_dialect = "postgresql" - inherit_cache = False + _traverse_internals: _TraverseInternalsType = [ + ("target", InternalTraversal.dp_clauseelement), + ("type", InternalTraversal.dp_type), + ("order_by", InternalTraversal.dp_clauseelement), + ] def __init__(self, target, *order_by): self.target = coercions.expect(roles.ExpressionElementRole, target) |
