Fixed #31088 -- Added support for websearch searching in SearchQuery.

This commit is contained in:
James Turk 2019-12-13 15:10:33 -05:00 committed by Mariusz Felisiak
parent 972d93a95e
commit ff00a05347
6 changed files with 59 additions and 2 deletions

View file

@ -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'))