mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Refactored get_fulltext_search_sql() to DatabaseOperations.fulltext_search_sql(). Refs #5106
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5957 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
23a736dca9
commit
5a6426448f
10 changed files with 15 additions and 23 deletions
|
@ -810,7 +810,7 @@ def get_where_clause(lookup_type, table_prefix, field_name, value, db_type):
|
|||
elif lookup_type == 'isnull':
|
||||
return "%s IS %sNULL" % (field_sql, (not value and 'NOT ' or ''))
|
||||
elif lookup_type == 'search':
|
||||
return backend.get_fulltext_search_sql(field_sql)
|
||||
return connection.ops.fulltext_search_sql(field_sql)
|
||||
elif lookup_type in ('regex', 'iregex'):
|
||||
if settings.DATABASE_ENGINE == 'oracle':
|
||||
if lookup_type == 'regex':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue