diff --git a/VERSION b/VERSION index 8b3c19e6..4c55dd4b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-11-06 10:36:39) stable +Version 2.2.1 (2012-11-06 14:26:21) stable diff --git a/gluon/dal.py b/gluon/dal.py index a8dae8d6..e910aa95 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -1199,7 +1199,7 @@ class BaseAdapter(ConnectionPool): def BELONGS(self, first, second): if isinstance(second, str): return '(%s IN (%s))' % (self.expand(first), second[:-1]) - elif second==[] or second==(): + elif not second: return '(1=0)' items = ','.join(self.expand(item, first.type) for item in second) return '(%s IN (%s))' % (self.expand(first), items)