mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 09:55:38 +00:00
93_DbLog: contrib 5.5.7
git-svn-id: https://svn.fhem.de/fhem/trunk@26877 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
69861c3c96
commit
963f261d2b
@ -2565,6 +2565,7 @@ sub _DbLog_SBP_onRun_connectDB {
|
||||
$dbh = DBI->connect("dbi:$dbconn", $dbuser, $dbpassword, { PrintError => 0,
|
||||
RaiseError => 1,
|
||||
AutoCommit => 0,
|
||||
ShowErrorStatement => 1,
|
||||
AutoInactiveDestroy => 1
|
||||
}
|
||||
); 1;
|
||||
@ -2573,6 +2574,7 @@ sub _DbLog_SBP_onRun_connectDB {
|
||||
$dbh = DBI->connect("dbi:$dbconn", $dbuser, $dbpassword, { PrintError => 0,
|
||||
RaiseError => 1,
|
||||
AutoCommit => 1,
|
||||
ShowErrorStatement => 1,
|
||||
AutoInactiveDestroy => 1
|
||||
}
|
||||
); 1;
|
||||
@ -2580,6 +2582,7 @@ sub _DbLog_SBP_onRun_connectDB {
|
||||
else { # Server default
|
||||
$dbh = DBI->connect("dbi:$dbconn", $dbuser, $dbpassword, { PrintError => 0,
|
||||
RaiseError => 1,
|
||||
ShowErrorStatement => 1,
|
||||
AutoInactiveDestroy => 1
|
||||
}
|
||||
); 1;
|
||||
@ -2968,6 +2971,9 @@ sub _DbLog_SBP_onRun_LogArray {
|
||||
|
||||
Log3 ($name, 4, "DbLog $name - Transaction is switched on. Transferred data is returned to the cache.");
|
||||
}
|
||||
else {
|
||||
Log3 ($name, 2, "DbLog $name - Transaction is switched off. Transferred data is lost.");
|
||||
}
|
||||
}
|
||||
else {
|
||||
__DbLog_SBP_commitOnly ($name, $dbh, $history);
|
||||
|
Loading…
x
Reference in New Issue
Block a user