From d6138be82164a47633942ae567d17c44372c3139 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 15 Sep 2015 17:37:10 +0200 Subject: [PATCH] DBConnect Caching: rollback nur bei Handles ohne AutoCommit Beseitigt die nervigen Warnungen im Log --- SL/DBConnect/Cache.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DBConnect/Cache.pm b/SL/DBConnect/Cache.pm index e45965f22..7e4633b69 100644 --- a/SL/DBConnect/Cache.pm +++ b/SL/DBConnect/Cache.pm @@ -36,7 +36,7 @@ sub reset { } sub reset_all { - $_->rollback for values %cache; + $_->{AutoCommit} || $_->rollback for values %cache; } sub clear { -- 2.20.1