#245 reverse method does not return object

closed-works-for-me
nobody
General (125)
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
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks