Reviewers: ,
Please review this at http://codereview.tryton.org/270002/ Affected files: M trytond/model/modelsql.py Index: trytond/model/modelsql.py =================================================================== --- a/trytond/model/modelsql.py +++ b/trytond/model/modelsql.py @@ -1822,12 +1822,16 @@ qu2.append('%') add_null = True else: - qu2.append(arg[2]) + qu2.append(FIELDS[ + table._columns[arg[0]]._type + ].sql_format(arg[2])) elif arg[1] in ('not like', 'not ilike'): if not arg[2]: qu2.append('') else: - qu2.append(arg[2]) + qu2.append(FIELDS[ + table._columns[arg[0]]._type + ].sql_format(arg[2])) add_null = True else: if arg[0] in table._columns: -- [email protected] mailing list
