Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #5985: Changed the lookups in the Oracle backend to use LIKEC i…

…nstead of LIKE.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 15a39f7fe5eb99916f5be319632db15f5a81ade9 1 parent aad5e79
Ian Kelly authored April 10, 2008

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  django/db/backends/oracle/base.py
12  django/db/backends/oracle/base.py
@@ -396,16 +396,16 @@ class DatabaseWrapper(BaseDatabaseWrapper):
396 396
     operators = {
397 397
         'exact': '= %s',
398 398
         'iexact': '= UPPER(%s)',
399  
-        'contains': "LIKE %s ESCAPE '\\'",
400  
-        'icontains': "LIKE UPPER(%s) ESCAPE '\\'",
  399
+        'contains': "LIKEC %s ESCAPE '\\'",
  400
+        'icontains': "LIKEC UPPER(%s) ESCAPE '\\'",
401 401
         'gt': '> %s',
402 402
         'gte': '>= %s',
403 403
         'lt': '< %s',
404 404
         'lte': '<= %s',
405  
-        'startswith': "LIKE %s ESCAPE '\\'",
406  
-        'endswith': "LIKE %s ESCAPE '\\'",
407  
-        'istartswith': "LIKE UPPER(%s) ESCAPE '\\'",
408  
-        'iendswith': "LIKE UPPER(%s) ESCAPE '\\'",
  405
+        'startswith': "LIKEC %s ESCAPE '\\'",
  406
+        'endswith': "LIKEC %s ESCAPE '\\'",
  407
+        'istartswith': "LIKEC UPPER(%s) ESCAPE '\\'",
  408
+        'iendswith': "LIKEC UPPER(%s) ESCAPE '\\'",
409 409
     }
410 410
     oracle_version = None
411 411
 

0 notes on commit 15a39f7

Please sign in to comment.
Something went wrong with that request. Please try again.