diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2023-02-27 04:22:37 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2023-02-27 04:22:37 +0000 |
| commit | ccf16a933bcb230055b2503ac571a13a4e284be5 (patch) | |
| tree | f72a9d6756e3b4bc937fcd100fa8012ac7dcef4a /lib/sqlalchemy/dialects/postgresql/base.py | |
| parent | 16d3dad4490fc4915096b7963f21e6b591b15ba7 (diff) | |
| parent | 71693c94d52612a5e88128575ff308ee4a923c00 (diff) | |
| download | sqlalchemy-ccf16a933bcb230055b2503ac571a13a4e284be5.tar.gz | |
Merge "ExcludeConstraint literal_compile" into main
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 255c72042..3ba103802 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -2350,8 +2350,9 @@ class PGDDLCompiler(compiler.DDLCompiler): constraint ) elements = [] + kw["include_table"] = False + kw["literal_binds"] = True for expr, name, op in constraint._render_exprs: - kw["include_table"] = False exclude_element = self.sql_compiler.process(expr, **kw) + ( (" " + constraint.ops[expr.key]) if hasattr(expr, "key") and expr.key in constraint.ops |
