Opened 3 years ago

Closed 3 years ago

#32895 closed New feature (duplicate)

Incorrectly disallowing negative integer for window range end

Reported by: henribru Owned by: nobody
Component: Database layer (models, ORM) Version: 3.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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

Change History (1)

comment:1 by Mariusz Felisiak, 3 years ago

Resolution: duplicate
Status: newclosed
Type: UncategorizedNew feature

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

Note: See TracTickets for help on using tickets.
Back to Top