perl6-language  

Re: Database Transactions and STM [was: Re: STM semantics, the Transactional role]

Aankhen
Mon, 18 Jul 2005 01:08:21 -0700

On 7/18/05, Sam Vilain <[EMAIL PROTECTED]> wrote:
> Is this needed, when you can just;
> 
>    atomic {
>       unsafeIO { $dbh.begin_work };
> 
>       unsafeIO { $dbh.do(...) };
> 
>       unsafeIO { $dbh.commit };
>    } CATCH {
>       $dbh.rollback;
>    };

Shouldn't that `CATCH` block be within the `atomic` block?  Or did I
miss something?

Aankhen