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.

Related to this:
https://groups.google.com/forum/#!topic/web2py/0dD6SmKPuFU




-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/97cd2ccf-0917-4708-9f25-c75c7c5522cb%40googlegroups.com.

Reply via email to