From: Sven Schöling Date: Tue, 16 Aug 2016 11:21:10 +0000 (+0200) Subject: DBUpgrade: temporäre dbh Behandlung X-Git-Tag: release-3.5.4~2072 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=180163aaf13906eedc96390ff6c6209bdfa8623d;p=kivitendo-erp.git DBUpgrade: temporäre dbh Behandlung --- diff --git a/SL/DBUpgrade2.pm b/SL/DBUpgrade2.pm index 753783c99..ede850154 100644 --- a/SL/DBUpgrade2.pm +++ b/SL/DBUpgrade2.pm @@ -243,7 +243,8 @@ sub process_perl_script { $dbh->begin_work; # setup dbup_ export vars & run script - my $old_dbh = SL::DB->client->dbh($dbh); + my $old_dbh = SL::DB->client->dbh; + SL::DB->client->dbh($dbh); my %dbup_myconfig = map { ($_ => $::form->{$_}) } qw(dbname dbuser dbpasswd dbhost dbport dbconnect); my $result = eval { SL::DBUpgrade2::Base::execute_script( @@ -256,7 +257,7 @@ sub process_perl_script { my $error = $EVAL_ERROR; - $::form->set_standard_dbh($old_dbh); + SL::DB->client->dbh($old_dbh); $dbh->rollback if 1 != ($result // -1);