summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/ext.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-01-30 12:10:16 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2017-01-30 12:10:16 -0500
commit1c578a710f14568856dad6a1c0bad1269b4108c4 (patch)
tree452686e86ae0937fc0e9fa31e0b0614521871a32 /lib/sqlalchemy/dialects/postgresql/ext.py
parentf55d466cad2d7c741f391eb2df15a23652132fe4 (diff)
downloadsqlalchemy-1c578a710f14568856dad6a1c0bad1269b4108c4.tar.gz
Copy whereclause / using in ExcludeConstraint
Fixed bug in Postgresql :class:`.ExcludeConstraint` where the "whereclause" and "using" parameters would not be copied during an operation like :meth:`.Table.tometadata`. Change-Id: I2f704981d4d4862f9c82a50272006fab8becebb6 Fixes: #3900
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/ext.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/ext.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/ext.py b/lib/sqlalchemy/dialects/postgresql/ext.py
index e3ac79f30..55eded90a 100644
--- a/lib/sqlalchemy/dialects/postgresql/ext.py
+++ b/lib/sqlalchemy/dialects/postgresql/ext.py
@@ -199,7 +199,9 @@ static/sql-createtable.html#SQL-CREATETABLE-EXCLUDE
c = self.__class__(*elements,
name=self.name,
deferrable=self.deferrable,
- initially=self.initially)
+ initially=self.initially,
+ where=self.where,
+ using=self.using)
c.dispatch._update(self.dispatch)
return c