mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +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
f8a4ca89a7
commit
ed2480c328
@ -2565,6 +2565,7 @@ sub _DbLog_SBP_onRun_connectDB {
|
|||||||
$dbh = DBI->connect("dbi:$dbconn", $dbuser, $dbpassword, { PrintError => 0,
|
$dbh = DBI->connect("dbi:$dbconn", $dbuser, $dbpassword, { PrintError => 0,
|
||||||
RaiseError => 1,
|
RaiseError => 1,
|
||||||
AutoCommit => 0,
|
AutoCommit => 0,
|
||||||
|
ShowErrorStatement => 1,
|
||||||
AutoInactiveDestroy => 1
|
AutoInactiveDestroy => 1
|
||||||
}
|
}
|
||||||
); 1;
|
); 1;
|
||||||
@ -2573,6 +2574,7 @@ sub _DbLog_SBP_onRun_connectDB {
|
|||||||
$dbh = DBI->connect("dbi:$dbconn", $dbuser, $dbpassword, { PrintError => 0,
|
$dbh = DBI->connect("dbi:$dbconn", $dbuser, $dbpassword, { PrintError => 0,
|
||||||
RaiseError => 1,
|
RaiseError => 1,
|
||||||
AutoCommit => 1,
|
AutoCommit => 1,
|
||||||
|
ShowErrorStatement => 1,
|
||||||
AutoInactiveDestroy => 1
|
AutoInactiveDestroy => 1
|
||||||
}
|
}
|
||||||
); 1;
|
); 1;
|
||||||
@ -2580,6 +2582,7 @@ sub _DbLog_SBP_onRun_connectDB {
|
|||||||
else { # Server default
|
else { # Server default
|
||||||
$dbh = DBI->connect("dbi:$dbconn", $dbuser, $dbpassword, { PrintError => 0,
|
$dbh = DBI->connect("dbi:$dbconn", $dbuser, $dbpassword, { PrintError => 0,
|
||||||
RaiseError => 1,
|
RaiseError => 1,
|
||||||
|
ShowErrorStatement => 1,
|
||||||
AutoInactiveDestroy => 1
|
AutoInactiveDestroy => 1
|
||||||
}
|
}
|
||||||
); 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.");
|
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 {
|
else {
|
||||||
__DbLog_SBP_commitOnly ($name, $dbh, $history);
|
__DbLog_SBP_commitOnly ($name, $dbh, $history);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user