pydal for_update on sqlite

22 views
Skip to first unread message

Eric

unread,
Feb 3, 2020, 11:46:35 AM2/3/20
to web2py-users

I'm using pydal revision 20191227.1 installed via pip.
Trying to use "for_update" in select on sqlite database results in an exception
    sqlite3.OperationalError: near "FOR": syntax error


The adapter for sqlite does have special handling for "for_update", but it looks like pydal is adding " FOR UPDATE" to the select statement for all databases including sqlite, which causes the problem.



Reply all
Reply to author
Forward
0 new messages