Make empty list in clause is converted into true

This commit is contained in:
Cédric Krier committed 2008-09-10 14:38:56 +02:00
1 parent 21d682c585
commit b925659d50
1 file changed
+2
+2
View File
@@ -2231,6 +2231,8 @@ class ORM(object):
for args2 in list_args:
qu1b, qu2b = self.__where_calc_oper(cursor,
user, args2, tables, tables_args, context=context)
if not qu1b:
qu1b = 'true'
if qu1 and qu1b:
qu1 += ' ' + operator + ' ' + qu1b
elif qu1b: