mirror of
https://github.com/django/django.git
synced 2025-08-06 11:58:26 +00:00
Fixed #31088 -- Added support for websearch searching in SearchQuery.
This commit is contained in:
parent
972d93a95e
commit
ff00a05347
6 changed files with 59 additions and 2 deletions
|
@ -64,6 +64,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||
def is_postgresql_10(self):
|
||||
return self.connection.pg_version >= 100000
|
||||
|
||||
@cached_property
|
||||
def is_postgresql_11(self):
|
||||
return self.connection.pg_version >= 110000
|
||||
|
||||
@cached_property
|
||||
def is_postgresql_12(self):
|
||||
return self.connection.pg_version >= 120000
|
||||
|
@ -71,4 +75,5 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||
has_bloom_index = property(operator.attrgetter('is_postgresql_9_6'))
|
||||
has_brin_autosummarize = property(operator.attrgetter('is_postgresql_10'))
|
||||
has_phraseto_tsquery = property(operator.attrgetter('is_postgresql_9_6'))
|
||||
has_websearch_to_tsquery = property(operator.attrgetter('is_postgresql_11'))
|
||||
supports_table_partitions = property(operator.attrgetter('is_postgresql_10'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue