Bug #3489

Selecting for update raises EmptyResultSet when filtering on an empty list

Added by Giorgos Korfiatis over 11 years ago. Updated over 11 years ago.

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

Revision 1fd14d3d
Added by Giorgos Korfiatis over 11 years ago

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 over 11 years ago

  • Status changed from Assigned to Resolved

Also available in: Atom PDF