summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Kelly <ian.g.kelly@gmail.com>2008-04-10 17:44:40 +0000
committerIan Kelly <ian.g.kelly@gmail.com>2008-04-10 17:44:40 +0000
commit15a39f7fe5eb99916f5be319632db15f5a81ade9 (patch)
treec904d6d96bea244387b58e1358fe1f9e6a526dcd
parentaad5e791ea424ed72f03cb6ba1bb12fc1ab9f54c (diff)
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
-rw-r--r--django/db/backends/oracle/base.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py
index 70f5688d1a..152adf7056 100644
--- a/django/db/backends/oracle/base.py
+++ b/django/db/backends/oracle/base.py
@@ -396,16 +396,16 @@ class DatabaseWrapper(BaseDatabaseWrapper):
operators = {
'exact': '= %s',
'iexact': '= UPPER(%s)',
- 'contains': "LIKE %s ESCAPE '\\'",
- 'icontains': "LIKE UPPER(%s) ESCAPE '\\'",
+ 'contains': "LIKEC %s ESCAPE '\\'",
+ 'icontains': "LIKEC UPPER(%s) ESCAPE '\\'",
'gt': '> %s',
'gte': '>= %s',
'lt': '< %s',
'lte': '<= %s',
- 'startswith': "LIKE %s ESCAPE '\\'",
- 'endswith': "LIKE %s ESCAPE '\\'",
- 'istartswith': "LIKE UPPER(%s) ESCAPE '\\'",
- 'iendswith': "LIKE UPPER(%s) ESCAPE '\\'",
+ 'startswith': "LIKEC %s ESCAPE '\\'",
+ 'endswith': "LIKEC %s ESCAPE '\\'",
+ 'istartswith': "LIKEC UPPER(%s) ESCAPE '\\'",
+ 'iendswith': "LIKEC UPPER(%s) ESCAPE '\\'",
}
oracle_version = None