Do not set default escape char for like operators

Backed out changeset d2709e0f0186 because it requires python-sql >= 1.4

Closes #13333

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier committed 2024-09-07 16:48:52 +02:00
1 parent 89a6dc2d68
commit 55c1728d2d
1 file changed
+5 -5
+5 -5
View File
@@ -1,7 +1,7 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import warnings
from functools import partial, wraps
from functools import wraps
import sql
from sql import (
@@ -234,10 +234,10 @@ def order_method(func):
SQL_OPERATORS = {
'=': operators.Equal,
'!=': operators.NotEqual,
'like': partial(operators.Like, escape='\\'),
'not like': partial(operators.NotLike, escape='\\'),
'ilike': partial(operators.ILike, escape='\\'),
'not ilike': partial(operators.NotILike, escape='\\'),
'like': operators.Like,
'not like': operators.NotLike,
'ilike': operators.ILike,
'not ilike': operators.NotILike,
'in': operators.In,
'not in': operators.NotIn,
'<=': operators.LessEqual,