[Django] #32895: Incorrectly disallowing negative integer for window range end

7 views
Skip to first unread message

Django

unread,
Jul 1, 2021, 10:50:47 AM7/1/21
to django-...@googlegroups.com
#32895: Incorrectly disallowing negative integer for window range end
-------------------------------------+-------------------------------------
Reporter: henribru | Owner: nobody
Type: | Status: new
Uncategorized |
Component: Database | Version: 3.2
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
In `window_frame_end` Django is currently enforcing that the `end`
argument of `ValueRange` and `RowRange` can't be a negative integer.
However, according to the Postgres documentation, "value PRECEDING" is
allowed for "frame_end", so a negative integer is equally valid for `end`
as it is for `start`.

https://www.postgresql.org/docs/9.5/sql-select.html

--
Ticket URL: <https://code.djangoproject.com/ticket/32895>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 1, 2021, 2:28:25 PM7/1/21
to django-...@googlegroups.com
#32895: Incorrectly disallowing negative integer for window range end
-------------------------------------+-------------------------------------
Reporter: henribru | Owner: nobody
Type: New feature | Status: closed
Component: Database layer | Version: 3.2
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* type: Uncategorized => New feature
* resolution: => duplicate


Comment:

Duplicate of #29850 which mentions a negative `start` and `end`.

--
Ticket URL: <https://code.djangoproject.com/ticket/32895#comment:1>

Reply all
Reply to author
Forward
0 new messages