lib/lhm/locked_switcher.rb in lhm-1.0.0.rc.1 vs lib/lhm/locked_switcher.rb in lhm-1.0.0.rc2

- old
+ new

@@ -47,12 +47,13 @@ def uncommitted(&block) [ "set @lhm_auto_commit = @@session.autocommit", "set session autocommit = 0", - *yield, + yield, "set session autocommit = @lhm_auto_commit" - ] + + ].flatten end # # Command interface #