I think if you use the thread instance of db, i.e.
current.db
or
db tnasferred through parameter
i.e. db which was created in model,
then you don't need commit because such db will be commited with success of 
the model-controller-view code.

But if db is instantiated in the module, outside from Web2py and so on,
then of course you need db.commit()





Dne čtvrtek 16. června 2016 12:56:42 UTC+2 Pierre napsal(a):
>
> Hi,
>
> w2p book says to issue *db.commit()* commands when DAL 
> insert/update/delete operations are located in a module(as opposed to being 
> located in a controller) but it seems to work fine even without these. what 
> is it really ? necessary , not necessary.......
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to