mirror of
https://github.com/django/django.git
synced 2025-08-06 20:08:20 +00:00
Fixed #27899 -- Added support for phrase/raw searching in SearchQuery.
Thanks Tim Graham, Nick Pope, and Claude Paroz for contribution and review.
This commit is contained in:
parent
c5e450ac95
commit
f5e347a640
6 changed files with 84 additions and 6 deletions
|
@ -57,6 +57,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||
def is_postgresql_9_5(self):
|
||||
return self.connection.pg_version >= 90500
|
||||
|
||||
@cached_property
|
||||
def is_postgresql_9_6(self):
|
||||
return self.connection.pg_version >= 90600
|
||||
|
||||
@cached_property
|
||||
def is_postgresql_10(self):
|
||||
return self.connection.pg_version >= 100000
|
||||
|
@ -67,3 +71,4 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||
has_brin_autosummarize = is_postgresql_10
|
||||
has_gin_pending_list_limit = is_postgresql_9_5
|
||||
supports_ignore_conflicts = is_postgresql_9_5
|
||||
has_phraseto_tsquery = is_postgresql_9_6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue