[MERGE] forward port of branch saas-2 up to revid 5025 chs@openerp.com-20140403084808-slnj7uis17kwi9js
bzr revid: chs@openerp.com-20140403085050-0blat5jm87j9gkbb
This commit is contained in:
commit
4978cf4293
|
@ -1038,7 +1038,7 @@ class expression(object):
|
||||||
if self.has_unaccent and sql_operator.endswith('like'):
|
if self.has_unaccent and sql_operator.endswith('like'):
|
||||||
assert isinstance(right, basestring)
|
assert isinstance(right, basestring)
|
||||||
trans_left = 'unaccent(value)'
|
trans_left = 'unaccent(value)'
|
||||||
left = 'unaccent("%s")' % (left,)
|
left = 'unaccent(%s)' % (left,)
|
||||||
instr = 'unaccent(%s)'
|
instr = 'unaccent(%s)'
|
||||||
elif sql_operator == 'in':
|
elif sql_operator == 'in':
|
||||||
# params will be flatten by to_sql() => expand the placeholders
|
# params will be flatten by to_sql() => expand the placeholders
|
||||||
|
|
Loading…
Reference in New Issue