fixed Issue 1432:Oracle: invalid SQL generated when requires = IS_NOT_IN_DB, thanks jphillips
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.4.5-stable+timestamp.2013.04.06.09.37.36
|
Version 2.4.5-stable+timestamp.2013.04.06.09.39.30
|
||||||
|
|||||||
+1
-1
@@ -652,7 +652,7 @@ class IS_NOT_IN_DB(Validator):
|
|||||||
if row and any(str(row[f]) != str(id[f]) for f in id):
|
if row and any(str(row[f]) != str(id[f]) for f in id):
|
||||||
return (value, translate(self.error_message))
|
return (value, translate(self.error_message))
|
||||||
else:
|
else:
|
||||||
row = subset.select(table._id, limitby=(0, 1)).first()
|
row = subset.select(table._id, field, limitby=(0, 1)).first()
|
||||||
if row and str(row.id) != str(id):
|
if row and str(row.id) != str(id):
|
||||||
return (value, translate(self.error_message))
|
return (value, translate(self.error_message))
|
||||||
return (value, None)
|
return (value, None)
|
||||||
|
|||||||
Reference in New Issue
Block a user