Django

Code

Changeset 7412

Show
Ignore:
Timestamp:
04/10/08 12:44:40 (1 month ago)
Author:
ikelly
Message:

Fixed #5985: Changed the lookups in the Oracle backend to use LIKEC instead of LIKE.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/backends/oracle/base.py

    r6995 r7412  
    397397        'exact': '= %s', 
    398398        '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 '\\'", 
    401401        'gt': '> %s', 
    402402        'gte': '>= %s', 
    403403        'lt': '< %s', 
    404404        '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 '\\'", 
    409409    } 
    410410    oracle_version = None