Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#245 reverse method does not return object

closed-works-for-me
nobody
General (126)
5
2009-04-18
2008-11-23
Anonymous
No

In SQLObject 0.10.2:

When I have a sqlobject object,
and I try something such as:

return list(object.select().reverse())

I will get an error because the reverse() method does not return Results, it just applies it into the object.
This makes ruby-style chains difficult.

Discussion

  • Oleg Broytman
    Oleg Broytman
    2009-04-17

    • status: open --> closed-wont-fix
     
  • Oleg Broytman
    Oleg Broytman
    2009-04-18

    SelectResults.reversed() returns a copy of the object so it allows call chaining. What's the problem?

     
  • Oleg Broytman
    Oleg Broytman
    2009-04-18

    • status: closed-wont-fix --> closed-works-for-me