mirror of https://github.com/django/django.git
Fixed #5985: Changed the lookups in the Oracle backend to use LIKEC instead of LIKE.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
aad5e791ea
commit
15a39f7fe5
|
@ -396,16 +396,16 @@ class DatabaseWrapper(BaseDatabaseWrapper):
|
||||||
operators = {
|
operators = {
|
||||||
'exact': '= %s',
|
'exact': '= %s',
|
||||||
'iexact': '= UPPER(%s)',
|
'iexact': '= UPPER(%s)',
|
||||||
'contains': "LIKE %s ESCAPE '\\'",
|
'contains': "LIKEC %s ESCAPE '\\'",
|
||||||
'icontains': "LIKE UPPER(%s) ESCAPE '\\'",
|
'icontains': "LIKEC UPPER(%s) ESCAPE '\\'",
|
||||||
'gt': '> %s',
|
'gt': '> %s',
|
||||||
'gte': '>= %s',
|
'gte': '>= %s',
|
||||||
'lt': '< %s',
|
'lt': '< %s',
|
||||||
'lte': '<= %s',
|
'lte': '<= %s',
|
||||||
'startswith': "LIKE %s ESCAPE '\\'",
|
'startswith': "LIKEC %s ESCAPE '\\'",
|
||||||
'endswith': "LIKE %s ESCAPE '\\'",
|
'endswith': "LIKEC %s ESCAPE '\\'",
|
||||||
'istartswith': "LIKE UPPER(%s) ESCAPE '\\'",
|
'istartswith': "LIKEC UPPER(%s) ESCAPE '\\'",
|
||||||
'iendswith': "LIKE UPPER(%s) ESCAPE '\\'",
|
'iendswith': "LIKEC UPPER(%s) ESCAPE '\\'",
|
||||||
}
|
}
|
||||||
oracle_version = None
|
oracle_version = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue