fixed Issue 1432:Oracle: invalid SQL generated when requires = IS_NOT_IN_DB, thanks jphillips

This commit is contained in:
mdipierro
2013-04-06 09:40:07 -05:00
parent 4a078705b3
commit 89021b6409
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -652,7 +652,7 @@ class IS_NOT_IN_DB(Validator):
if row and any(str(row[f]) != str(id[f]) for f in id):
return (value, translate(self.error_message))
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):
return (value, translate(self.error_message))
return (value, None)