Changes between Initial Version and Version 2 of Ticket #13436


Ignore:
Timestamp:
Apr 28, 2010, 9:26:14 AM (15 years ago)
Author:
Karen Tracey
Comment:

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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13436

    • Property Version 1.1-beta-11.2-beta
  • 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