1 2 3 4 5 6 7 8 9 10 11 12 | def fulltext_search_sql(self, field_name):
return ("CONTAINS(%s, %%s) > 0" % field_name)
def field_cast_sql(self, db_type):
return "%s"
def patch():
"""call me, call me"""
from django.db.backends.oracle.base import DatabaseOperations
DatabaseOperations.fulltext_search_sql = fulltext_search_sql
DatabaseOperations.field_cast_sql = field_cast_sql
|
More like this
- Full-Text Searchable Models by dcwatson 4 years, 3 months ago
- OracleAuthBackend by nosrednakram 3 years, 9 months ago
- Sphinx Search ORM by zeeg 6 years ago
- Sphinx Search ORM / Revised by ludo 5 years, 9 months ago
- Google v3 geocoding for Geodjango admin site by samhag 6 months, 3 weeks ago
Comments
Note that this breaks the "History" links in the admin app, resulting in an ORA-00932 error when you try to click on them.
#
thanks, I'll fix it.
#