diff options
author | Tim Graham <timograham@gmail.com> | 2020-01-19 18:30:54 -0500 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-01-20 20:03:35 +0100 |
commit | 227d0c7365cfd0a64d021cb9bdcf77bed2d3f170 (patch) | |
tree | 3d166c4ca5e98352857cf08f92ec2c1c84bb73ec /django/db/backends/postgresql/operations.py | |
parent | 2a2ea4ee18fdcf2c95bf6435bc63b74623e3085b (diff) | |
download | django-227d0c7365cfd0a64d021cb9bdcf77bed2d3f170.tar.gz |
Fixed #31183 -- Added a feature flag for "<db> only supports UNBOUNDED together with PRECEDING and FOLLOWING".
Diffstat (limited to 'django/db/backends/postgresql/operations.py')
-rw-r--r-- | django/db/backends/postgresql/operations.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py index ee7787c560..e8355a0e58 100644 --- a/django/db/backends/postgresql/operations.py +++ b/django/db/backends/postgresql/operations.py @@ -1,7 +1,6 @@ from psycopg2.extras import Inet from django.conf import settings -from django.db import NotSupportedError from django.db.backends.base.operations import BaseDatabaseOperations @@ -275,15 +274,6 @@ class DatabaseOperations(BaseDatabaseOperations): return "(interval '1 day' * (%s - %s))" % (lhs_sql, rhs_sql), params return super().subtract_temporals(internal_type, lhs, rhs) - def window_frame_range_start_end(self, start=None, end=None): - start_, end_ = super().window_frame_range_start_end(start, end) - if (start and start < 0) or (end and end > 0): - raise NotSupportedError( - 'PostgreSQL only supports UNBOUNDED together with PRECEDING ' - 'and FOLLOWING.' - ) - return start_, end_ - def explain_query_prefix(self, format=None, **options): prefix = super().explain_query_prefix(format) extra = {} |