Bug #3489
Selecting for update raises EmptyResultSet when filtering on an empty list
Status: | Resolved | Start date: | 03/22/2013 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | Giorgos Korfiatis | % Done: | 0% |
|
Category: | - | Spent time: | - | |
Target version: | 0.13.0 |
Description
Custom ForUpdateManager does not handle properly the case of selecting with filter(field__in=[]).
Call to as_sql() raises EmptyResultSet, which is left unhandled.
Associated revisions
Return EmptyQuerySet on an EmptyResultSet
Refs #3489
Call to as_sql() raises EmptyResultSet in a couple of occasions,
more importantly when filtering based on an empty list: filter(field__in=[]).
History
#1 Updated by Giorgos Korfiatis about 10 years ago
- Status changed from Assigned to Resolved