I haven't tried... seems like a good idea though :)

On Tue, Apr 7, 2009 at 3:54 AM, Michael Klishin
<[email protected]> wrote:
>
> 2009/4/7 Chris Van Pelt <[email protected]>:
>> What I gather happened is that because my DataMapper
>> `dm_instance.transaction { #awesome stuff }` uses prepared
>> transactions, if a process dies in the middle of one of these
>> transactions there isn't an ensure block rolling back the transaction.
>>  This leaves rouge transaction ids floating around which much be
>> removed manually using "ROLLBACK PREPARED
>> id_from_the_pg_prepared_xacts_table;".  Is there a way to force
>> DataMapper to use regular transactions?
>
> No. I think ensure block should be added to DM. Other solutions will be too
> adapter specific. If you use ensure with manual rollback in your code, does
> it work ok for you?
> --
> MK
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to