Changes between Initial Version and Version 2 of Ticket #13436
- Timestamp:
- Apr 28, 2010, 9:26:14 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13436
- Property Version 1.1-beta-1 → 1.2-beta
-
Ticket #13436 – Description
initial v2 1 {{{ 2 1 3 OracleDBModel.objects.filter(name__startswith='abc') 2 4 3 5 DatabaseError: ORA-01425: escape character must be character string of length 1 4 6 }}} 5 7 changing 6 8 django/db/backends/oracle/base.py 9 10 {{{ 7 11 -'startswith': "LIKE TRANSLATE(%s USING NCHAR_CS) ESCAPE TRANSLATE('\\' USING NCHAR_CS)", 8 12 +'startswith': "LIKE %s ESCAPE '\\'", 13 14 }}} 9 15 appears to fix the problem