summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/dml.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/dml.py
parent757a5b1858a742133e2197940a55f38823534365 (diff)
parentc6d869f814d2e8ffe03e519c59cf35f7a4927e1c (diff)
downloadsqlalchemy-75fb71d25e988bcc13629469cb6739ad7eb539e9.tar.gz
Merge "Allow dialect-specific stringification"
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/dml.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/dml.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/dml.py b/lib/sqlalchemy/dialects/postgresql/dml.py
index 70d26a94b..50fd09528 100644
--- a/lib/sqlalchemy/dialects/postgresql/dml.py
+++ b/lib/sqlalchemy/dialects/postgresql/dml.py
@@ -30,6 +30,8 @@ class Insert(StandardInsert):
"""
+ stringify_dialect = "postgresql"
+
@util.memoized_property
def excluded(self):
"""Provide the ``excluded`` namespace for an ON CONFLICT statement
@@ -149,6 +151,8 @@ insert = public_factory(
class OnConflictClause(ClauseElement):
+ stringify_dialect = "postgresql"
+
def __init__(self, constraint=None, index_elements=None, index_where=None):
if constraint is not None: