Changes between Initial Version and Version 2 of Ticket #13436


Ignore:
Timestamp:
04/28/2010 09:26:14 AM (5 years ago)
Author:
kmtracey
Comment:

Fixed formatting. Please use WikiFormatting and Preview before hitting Submit.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13436

    • Property Needs documentation unset
    • Property Version changed from 1.1-beta-1 to 1.2-beta
    • Property Needs tests unset
    • Property Patch needs improvement unset
  • Ticket #13436 – Description

    initial v2  
     1{{{
     2
    13OracleDBModel.objects.filter(name__startswith='abc')
    24
    35DatabaseError: ORA-01425: escape character must be character string of length 1
    4 
     6}}}
    57changing
    68django/db/backends/oracle/base.py
     9
     10{{{
    711-'startswith': "LIKE TRANSLATE(%s USING NCHAR_CS) ESCAPE TRANSLATE('\\' USING NCHAR_CS)",
    812+'startswith': "LIKE %s ESCAPE '\\'",
     13
     14}}}
    915appears to fix the problem
Back to Top