On Tuesday, 21 May 2013 at 10:12:41 UTC, Nick Sabalausky wrote:
// Psuedocode
START TRANSACTION;
scope(fail) ROLLBACK;
scope(exit) COMMIT;

Nice :)

You may have meant "scope(success) COMMIT;", scope(exit) is executed on both failure and success.

Reply via email to