From 39c3f17ac340bab0f9725ec0dbe7dda9baa3e2c0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 3 Jul 2013 12:22:31 +0200 Subject: [PATCH] Commit nach DB-Upgrade auch, wenn AutoCommit aus ist --- SL/DBUpgrade2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DBUpgrade2.pm b/SL/DBUpgrade2.pm index f6ad6eb18..eba336fe2 100644 --- a/SL/DBUpgrade2.pm +++ b/SL/DBUpgrade2.pm @@ -273,7 +273,7 @@ sub process_perl_script { $dbh->do("UPDATE defaults SET version = " . $dbh->quote($version_or_control)); } - $dbh->commit if $dbh->{AutoCommit} && $dbh->{BegunWork}; + $dbh->commit if !$dbh->{AutoCommit} || $dbh->{BegunWork}; # Clear $::form of values that may have been set so that following # Perl upgrade scripts won't have to work with old data (think of -- 2.20.1