mirror of
https://github.com/django/django.git
synced 2025-08-06 20:08:20 +00:00
Fixed #32961 -- Added BitXor() aggregate to django.contrib.postgres.
This commit is contained in:
parent
000d430234
commit
bd47b9bc81
5 changed files with 55 additions and 5 deletions
|
@ -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'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue