Fixed #32961 -- Added BitXor() aggregate to django.contrib.postgres.

This commit is contained in:
Nick Pope 2021-07-23 16:57:26 +01:00 committed by Mariusz Felisiak
parent 000d430234
commit bd47b9bc81
5 changed files with 55 additions and 5 deletions

View file

@ -91,6 +91,11 @@ class DatabaseFeatures(BaseDatabaseFeatures):
def is_postgresql_13(self):
return self.connection.pg_version >= 130000
@cached_property
def is_postgresql_14(self):
return self.connection.pg_version >= 140000
has_bit_xor = property(operator.attrgetter('is_postgresql_14'))
has_websearch_to_tsquery = property(operator.attrgetter('is_postgresql_11'))
supports_covering_indexes = property(operator.attrgetter('is_postgresql_11'))
supports_covering_gist_indexes = property(operator.attrgetter('is_postgresql_12'))