projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Shop: Standartartikelnr für Versandartikel
[kivitendo-erp.git]
/
SL
/
DBConnect
/
Cache.pm
diff --git
a/SL/DBConnect/Cache.pm
b/SL/DBConnect/Cache.pm
index
778785c
..
c133e8a
100644
(file)
--- a/
SL/DBConnect/Cache.pm
+++ b/
SL/DBConnect/Cache.pm
@@
-35,10
+35,19
@@
sub reset {
$dbh;
}
$dbh;
}
+sub reset_all {
+ $_->{AutoCommit} || $_->rollback for values %cache;
+}
+
sub clear {
%cache = ();
}
sub clear {
%cache = ();
}
+sub disconnect_all_and_clear {
+ $_->disconnect for values %cache;
+ %cache = ();
+}
+
sub _args2str {
my (@args) = @_;
sub _args2str {
my (@args) = @_;
@@
-52,7
+61,7
@@
sub _args2str {
map { $_ => $options->{$_} }
sort keys %$options; # deterministic order
map { $_ => $options->{$_} }
sort keys %$options; # deterministic order
- join ';', apply { s/([;\\])/\\$1/g } $dbconnect, $dbuser, $dbpasswd, $options_str, $initial_sql;
+ join ';', apply {
$_ //= '';
s/([;\\])/\\$1/g } $dbconnect, $dbuser, $dbpasswd, $options_str, $initial_sql;
}
1;
}
1;