summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/features.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2018-09-17 18:03:52 +0200
committerTim Graham <timograham@gmail.com>2018-09-17 12:03:52 -0400
commitf5e347a6402c1996a8f7063de4b314bae4a55683 (patch)
treec635bf758e0754f483448b2d272ee2f5bb5fd29f /django/db/backends/postgresql/features.py
parentc5e450ac950316068455e76d4a63b78110d7cde5 (diff)
Fixed #27899 -- Added support for phrase/raw searching in SearchQuery.
Thanks Tim Graham, Nick Pope, and Claude Paroz for contribution and review.
Diffstat (limited to 'django/db/backends/postgresql/features.py')
-rw-r--r--django/db/backends/postgresql/features.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py
index 7fbe4bae02..5d6ebc9d15 100644
--- a/django/db/backends/postgresql/features.py
+++ b/django/db/backends/postgresql/features.py
@@ -58,6 +58,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
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