#269 Modulo mapped to function instead of operator

closed-fixed
SQLite (24)
5
2011-11-26
2011-11-25
Tobias
No

With SQLObject 1.2.0 and whatever SQLite comes with Python 2.6, this following works fine:

Video.select("""video.width % 2 == 1""")[0]

But this raises sqlobject.dberrors.OperationalError: no such function: MOD:

Video.select(Video.q.width % 2 == 1)[0]

Discussion

  • Oleg Broytman

    Oleg Broytman - 2011-11-26
    • assigned_to: nobody --> phd
    • status: open --> closed-fixed
     
  • Oleg Broytman

    Oleg Broytman - 2011-11-26

    Fixed in commits 4482:4484 (branches 1.1, 1.2 and the trunk). Will be in the next releases. Thank you!

     

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