KERNEL: fix search on xxx2many

bzr revid: ced-2d53132f93feb7e1b7c74964c750ccfd2ec42e56
This commit is contained in:
ced 2007-03-14 09:06:29 +00:00
parent 1ac4be595b
commit 4f6f0cfbab
1 changed files with 1 additions and 1 deletions

View File

@ -1324,7 +1324,7 @@ class orm(object):
for xitem in todel[::-1]:
del x[2][xitem]
if x[0]=='id':
qu1.append('(id=any(array[%s]))' % (','.join(['%d'] * len(x[2])),))
qu1.append('(%s.id=any(array[%s]))' % (table._table, ','.join(['%d'] * len(x[2])),))
else:
qu1.append('(%s.%s in (%s))' % (table._table, x[0], ','.join([table._columns[x[0]]._symbol_set[0]]*len(x[2]))))
if todel: