Mercurial > p > roundup > code
diff roundup/backends/rdbms_common.py @ 4803:5e679e364f9a
Bug-fix: need to return None for empty query
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Mon, 08 Jul 2013 16:55:20 +0200 |
| parents | 4a017661e414 |
| children | e68920390aad |
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py Mon Jul 08 11:14:53 2013 +0200 +++ b/roundup/backends/rdbms_common.py Mon Jul 08 16:55:20 2013 +0200 @@ -2419,7 +2419,7 @@ # where clause will always be false, and we # can optimize the query away. if not v: - return [] + return None s = ','.join([a for x in v]) where.append('_%s.%s in (%s)'%(pln, k, s)) args = args + v
