Always surround WHERE clause with parentheses in EXCLUDE constraint
Closes #14449 (grafted from 7e50d52dc65227f494c6ad965917364fc08f0c5e) --HG-- branch : 6.0
This commit is contained in:
1 parent
80807f0d6f
commit
c7854362b7
1 file changed
+1
-1
@@ -144,7 +144,7 @@ class Exclude(Constraint):
|
||||
for column, operator in self.excludes)
|
||||
where = ''
|
||||
if self.where:
|
||||
where = ' WHERE ' + str(self.where)
|
||||
where = ' WHERE (' + str(self.where) + ')'
|
||||
return 'EXCLUDE (%s)' % exclude + where
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user