Modulo mapped to function instead of operator
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
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]
Fixed in commits 4482:4484 (branches 1.1, 1.2 and the trunk). Will be in the next releases. Thank you!