« Return to Thread: how to implement Transactions (over different db tables) in a Catalyst project

Re: how to implement Transactions (over different db tables) in a Catalyst project

by kakimoto :: Rate this Message:

Reply to Author | View in Thread

So, in the case of an exception, an automatic rollback will take place.
I have tested this in my application and it seems that way.

Can anyone confirm this?
Thank you:)

> This is fairly easy to get wrong - txn_do forces you to have a block
>
> which comprises the transaction scope, or your code won't compile.
>
> It will start a transaction at the start of the block, and commit it
>
> at the end if an exception hasn't been encountered during the  
> transaction
>





_______________________________________________
List: Catalyst@...
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@.../
Dev site: http://dev.catalyst.perl.org/

 « Return to Thread: how to implement Transactions (over different db tables) in a Catalyst project