[IMP]:wiki 'in' to 'ANY'

bzr revid: nch@tinyerp.com-20091123131735-mcsxnr7jj27b93k7
This commit is contained in:
nch@tinyerp.com
2009-11-23 18:47:35 +05:30
parent 9565e05067
commit 966d3091f3
+1 -1
View File
@@ -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 = {}