2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

93_DbLog: V2.21.2, some improvements like get reading 'state' of state-events, timeout increased, change configCheck for DbRep Report_Idx

git-svn-id: https://svn.fhem.de/fhem/trunk@14751 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2017-07-19 22:06:32 +00:00
parent fe7d902b1c
commit d68f68d097

View File

@ -2076,8 +2076,7 @@ sub DbLog_readCfg($){
my $name = $hash->{NAME};
my $configfilename= $hash->{CONFIGURATION};
my %dbconfig;
my $ret;
my %dbconfig;
# use generic fileRead to get configuration data
my ($err, @config) = FileRead($configfilename);
@ -2103,16 +2102,16 @@ sub DbLog_readCfg($){
$hash->{MODEL}="SQLITE";
} else {
$hash->{MODEL}="unknown";
$ret = "unknown database type";
Log3 $hash->{NAME}, 1, "Unknown database model found in configuration file $configfilename.";
Log3 $hash->{NAME}, 1, "Only MySQL/MariaDB, PostgreSQL, Oracle, SQLite are fully supported.";
return "unknown database type";
}
if($hash->{MODEL} eq "MYSQL") {
$hash->{UTF8} = defined($dbconfig{utf8})?$dbconfig{utf8}:0;
}
return $ret;
return;
}
sub DbLog_ConnectPush($;$$) {