EmptyResultSet.config() returns None but ResultSet.config() returns self

Bug #905529 reported by Gavin Panella on 2011-12-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

The following will work find if more_results is a ResultSet, and will crash if it's an EmptyResultSet:

def example(more_results):
  return store.find(...).union(more_results).config(limit=10)

Related branches

Gavin Panella (allenap) on 2011-12-16
Changed in storm:
status: Triaged → In Progress
assignee: nobody → Gavin Panella (allenap)
Gavin Panella (allenap) wrote :

Not sure this is even a bug any more.

Changed in storm:
assignee: Gavin Panella (allenap) → nobody
status: In Progress → New
Colin Watson (cjwatson) on 2020-03-18
Changed in storm:
milestone: none → 0.23
Colin Watson (cjwatson) on 2020-03-18
Changed in storm:
status: New → Fix Committed
Colin Watson (cjwatson) wrote :

Fixed in Storm 0.23.

Changed in storm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers