~openerp-dev/openobject-server/7.0-mail_issues-adh-1168376

« back to all changes in this revision

Viewing changes to openerp/osv/expression.py

  • Committer: Christophe Simonis
  • Date: 2014-04-03 08:45:24 UTC
  • Revision ID: chs@openerp.com-20140403084524-9rb174osjrbmhgwc
[FIX] expression: do not double quote column names

Show diffs side-by-side

added added

removed removed

Lines of Context:
1039
1039
                    if self.has_unaccent and sql_operator.endswith('like'):
1040
1040
                        assert isinstance(right, basestring)
1041
1041
                        trans_left = 'unaccent(value)'
1042
 
                        left = 'unaccent("%s")' % (left,)
 
1042
                        left = 'unaccent(%s)' % (left,)
1043
1043
                        instr = 'unaccent(%s)'
1044
1044
                    elif sql_operator == 'in':
1045
1045
                        # params will be flatten by to_sql() => expand the placeholders