Opened 16 years ago

Closed 16 years ago

Last modified 16 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: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 16 years ago.
10202-r9814.diff (1.6 KB ) - added by Ramiro Morales 16 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)

by Alex Gaynor, 16 years ago

Attachment: count-0.diff added

by Ramiro Morales, 16 years ago

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 by Alex Gaynor, 16 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Malcolm Tredinnick, 16 years ago

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 by Malcolm Tredinnick, 16 years ago

(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