summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/ext.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2020-11-08 18:05:54 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2020-11-08 18:05:54 +0000
commit75fb71d25e988bcc13629469cb6739ad7eb539e9 (patch)
tree11bdb9734f09596efadffc89120fc246ffb0f326 /lib/sqlalchemy/dialects/postgresql/ext.py
parent757a5b1858a742133e2197940a55f38823534365 (diff)
parentc6d869f814d2e8ffe03e519c59cf35f7a4927e1c (diff)
downloadsqlalchemy-75fb71d25e988bcc13629469cb6739ad7eb539e9.tar.gz
Merge "Allow dialect-specific stringification"
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/ext.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/ext.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/ext.py b/lib/sqlalchemy/dialects/postgresql/ext.py
index c139fe94f..78d9a96b6 100644
--- a/lib/sqlalchemy/dialects/postgresql/ext.py
+++ b/lib/sqlalchemy/dialects/postgresql/ext.py
@@ -52,6 +52,8 @@ class aggregate_order_by(expression.ColumnElement):
__visit_name__ = "aggregate_order_by"
+ stringify_dialect = "postgresql"
+
def __init__(self, target, *order_by):
self.target = coercions.expect(roles.ExpressionElementRole, target)
@@ -96,6 +98,8 @@ class ExcludeConstraint(ColumnCollectionConstraint):
where = None
+ create_drop_stringify_dialect = "postgresql"
+
@elements._document_text_coercion(
"where",
":class:`.ExcludeConstraint`",