summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/features.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2020-01-19 18:30:54 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-01-20 20:03:35 +0100
commit227d0c7365cfd0a64d021cb9bdcf77bed2d3f170 (patch)
tree3d166c4ca5e98352857cf08f92ec2c1c84bb73ec /django/db/backends/postgresql/features.py
parent2a2ea4ee18fdcf2c95bf6435bc63b74623e3085b (diff)
Fixed #31183 -- Added a feature flag for "<db> only supports UNBOUNDED together with PRECEDING and FOLLOWING".
Diffstat (limited to 'django/db/backends/postgresql/features.py')
-rw-r--r--django/db/backends/postgresql/features.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py
index fad87081b0..67c04d89dc 100644
--- a/django/db/backends/postgresql/features.py
+++ b/django/db/backends/postgresql/features.py
@@ -52,6 +52,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
$$ LANGUAGE plpgsql;"""
requires_casted_case_in_updates = True
supports_over_clause = True
+ only_supports_unbounded_with_preceding_and_following = True
supports_aggregate_filter_clause = True
supported_explain_formats = {'JSON', 'TEXT', 'XML', 'YAML'}
validates_explain_options = False # A query will error on invalid options.