#36147: django oracle backend wildcard issue
-------------------------------------+-------------------------------------
Reporter: Terence Collins | Type:
| Uncategorized
Status: new | Component: Database
| layer (models, ORM)
Version: 5.1 | Severity: Normal
Keywords: oracle, db, | Triage Stage:
backend, % | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
in django/db/backends/oracle/base.py, in _fix_for_params, line 542:
query %= args
will cause an error if the passed in string using an SQL wildcard, i.e.
"custom_value like '%custom_value%'.
This can be avoided by escaping the "%" as "%%", but as this is an
underlying function the resultant error can be hard to track down.
--
Ticket URL: <https://code.djangoproject.com/ticket/36147>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070194a8f12c71-b32714dc-689c-4383-8cc2-f57c7bfb7c10-000000%40eu-central-1.amazonses.com.