From 966d3091f31a951f5e08d30209593b69a6132dea Mon Sep 17 00:00:00 2001 From: "nch@tinyerp.com" <> Date: Mon, 23 Nov 2009 18:47:35 +0530 Subject: [PATCH] [IMP]:wiki 'in' to 'ANY' bzr revid: nch@tinyerp.com-20091123131735-mcsxnr7jj27b93k7 --- addons/wiki/wizard/make_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/wiki/wizard/make_index.py b/addons/wiki/wizard/make_index.py index aa408377ca3..b37374177e4 100644 --- a/addons/wiki/wizard/make_index.py +++ b/addons/wiki/wizard/make_index.py @@ -34,7 +34,7 @@ def wiki_do_index(self, cr, uid, data, context): ids = data['ids'] pool = pooler.get_pool(cr.dbname) wiki_pool = pool.get('wiki.wiki') - cr.execute("Select id, section from wiki_wiki where id in %s order by section " ,(tuple(ids),)) + cr.execute("Select id, section from wiki_wiki where id = ANY(%s) order by section " ,(ids,)) lst0 = cr.fetchall() lst = [] ids = {}