summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-06-23 00:21:22 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-06-23 00:21:22 -0400
commit564c4eac715dfe9f18232a65ac74115493a89d2e (patch)
tree5d370e72e9162eeff5bc50a2b9a11fc1b27e04d4 /lib/sqlalchemy
parentaa5cc5a2cca1131af7925f5bec1745571bfd5736 (diff)
downloadsqlalchemy-564c4eac715dfe9f18232a65ac74115493a89d2e.tar.gz
2.5ism
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/constraints.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/constraints.py b/lib/sqlalchemy/dialects/postgresql/constraints.py
index 5b8bbe643..c6ccff0bd 100644
--- a/lib/sqlalchemy/dialects/postgresql/constraints.py
+++ b/lib/sqlalchemy/dialects/postgresql/constraints.py
@@ -39,7 +39,7 @@ class ExcludeConstraint(ColumnCollectionConstraint):
:param using:
Optional string. If set, emit USING <index_method> when issuing DDL
for this constraint. Defaults to 'gist'.
-
+
:param where:
Optional string. If set, emit WHERE <predicate> when issuing DDL
for this constraint.
@@ -47,10 +47,10 @@ class ExcludeConstraint(ColumnCollectionConstraint):
"""
ColumnCollectionConstraint.__init__(
self,
- *[col for col, op in elements],
name=kw.get('name'),
deferrable=kw.get('deferrable'),
- initially=kw.get('initially')
+ initially=kw.get('initially'),
+ *[col for col, op in elements]
)
self.operators = {}
for col_or_string, op in elements:
@@ -60,14 +60,14 @@ class ExcludeConstraint(ColumnCollectionConstraint):
where = kw.get('where')
if where:
self.where = expression._literal_as_text(where)
-
+
def copy(self, **kw):
elements = [(col, self.operators[col])
for col in self.columns.keys()]
- c = self.__class__(*elements,
- name=self.name,
+ c = self.__class__(name=self.name,
deferrable=self.deferrable,
- initially=self.initially)
+ initially=self.initially,
+ *elements)
c.dispatch._update(self.dispatch)
return c