Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#10202 closed (fixed)

When the high mark is 0 on a queryset .count() returns the full number instead of 0

Reported by: Alex Gaynor Owned by: Alex Gaynor
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Though this is a bit of an edge case(and not realistic) it's a trivial fix.

Attachments (2)

count-0.diff (949 bytes) - added by Alex Gaynor 8 years ago.
10202-r9814.diff (1.6 KB) - added by Ramiro Morales 8 years ago.
More nitpicking, Fix another Query high_mark comparison against None corner case, add a test and move tests to under regressiontests

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by Alex Gaynor

Attachment: count-0.diff added

Changed 8 years ago by Ramiro Morales

Attachment: 10202-r9814.diff added

More nitpicking, Fix another Query high_mark comparison against None corner case, add a test and move tests to under regressiontests

comment:1 Changed 8 years ago by Alex Gaynor

Triage Stage: UnreviewedAccepted

comment:2 Changed 8 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(In [9924]) Fixed #10202 -- Fixed another couple of slicing edge-cases with querysets.

Patch from Alex Gaynor and Ramiro Morales.

comment:3 Changed 8 years ago by Malcolm Tredinnick

(In [9925]) [1.0.X] Fixed #10202 -- Fixed another couple of slicing edge-cases with querysets.

Patch from Alex Gaynor and Ramiro Morales.

Backport of r9924 from trunk.

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