fixed typo in belongs
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.6.0-development+timestamp.2013.08.09.15.06.03
|
||||
Version 2.6.0-development+timestamp.2013.08.09.15.15.41
|
||||
|
||||
@@ -1270,7 +1270,7 @@ class BaseAdapter(ConnectionPool):
|
||||
if isinstance(second, (list,tuple,frozenset)):
|
||||
second = set(second) # remove duplicates, make mutable
|
||||
if isinstance(second, set) and None in second:
|
||||
second = second.remove(None)
|
||||
second.remove(None)
|
||||
return self.OR(self.EQ(first, None), self.BELONGS(first, second))
|
||||
items = ','.join(self.expand(item, first.type) for item in second)
|
||||
return '(%s IN (%s))' % (self.expand(first), items)
|
||||
|
||||
Reference in New Issue
Block a user