#225 Buggs in Select

General (125)

This is for: sqlobject-0.10dev_r2829-py2.4.egg

I've found some things that doesn't work in the
sqlbuilder.Select class.

In the __sqlrepr__ method ops['limit'] isn't used correctly:

def __sqlrepr__:
if self.ops['limit'] is not NoDefault:
end = start + limit

Now it seem like when using slices ops['limit'] can be None (not NoDefault).

Also as can be noted limit is never set, I supposed it to be self.ops['limit'].
Resulting in:

NameError: global name 'limit' is not defined

Select(..., limit=2)
does give (not sure why, I might be me):

OperationalError: near "<": syntax error


  • Oleg Broytman

    Oleg Broytman - 2007-09-07

    Logged In: YES
    Originator: NO

    I think it's been fixed in the revision 2893.

  • Oleg Broytman

    Oleg Broytman - 2007-09-07
    • assigned_to: nobody --> phd
    • status: open --> closed-fixed

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