Revision 180163aa
Von Sven Schöling vor mehr als 8 Jahren hinzugefügt
SL/DBUpgrade2.pm | ||
---|---|---|
243 | 243 |
$dbh->begin_work; |
244 | 244 |
|
245 | 245 |
# setup dbup_ export vars & run script |
246 |
my $old_dbh = SL::DB->client->dbh($dbh); |
|
246 |
my $old_dbh = SL::DB->client->dbh; |
|
247 |
SL::DB->client->dbh($dbh); |
|
247 | 248 |
my %dbup_myconfig = map { ($_ => $::form->{$_}) } qw(dbname dbuser dbpasswd dbhost dbport dbconnect); |
248 | 249 |
my $result = eval { |
249 | 250 |
SL::DBUpgrade2::Base::execute_script( |
... | ... | |
256 | 257 |
|
257 | 258 |
my $error = $EVAL_ERROR; |
258 | 259 |
|
259 |
$::form->set_standard_dbh($old_dbh);
|
|
260 |
SL::DB->client->dbh($old_dbh);
|
|
260 | 261 |
|
261 | 262 |
$dbh->rollback if 1 != ($result // -1); |
262 | 263 |
|
Auch abrufbar als: Unified diff
DBUpgrade: temporäre dbh Behandlung