On Tuesday, March 3, 2015 at 8:42:03 AM UTC+10:30, Jeremy Evans wrote:
>
> def commit_transaction(conn, opts=OPTS)
> if (!supports_savepoints? || savepoint_level(conn) == 1) && (ary =
> _trans(conn)[:before_commit])
> ary.each{|b| b.call}
> end
> super
> end
>
I tried this first but the transaction isn't rolled back if
commit_transaction raises an exception.
> If you want to put this in a gem, please send me a link and I can add it
> to the plugins page on the website.
>
Ok, I will work on doing that.
Thanks,
Tim
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.