projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef9698b
)
Commit nach DB-Upgrade auch, wenn AutoCommit aus ist
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 3 Jul 2013 10:22:31 +0000
(12:22 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 3 Jul 2013 10:22:31 +0000
(12:22 +0200)
SL/DBUpgrade2.pm
patch
|
blob
|
history
diff --git
a/SL/DBUpgrade2.pm
b/SL/DBUpgrade2.pm
index
f6ad6eb
..
eba336f
100644
(file)
--- 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