mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +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:
parent
fe7d902b1c
commit
d68f68d097
@ -2077,7 +2077,6 @@ sub DbLog_readCfg($){
|
|||||||
|
|
||||||
my $configfilename= $hash->{CONFIGURATION};
|
my $configfilename= $hash->{CONFIGURATION};
|
||||||
my %dbconfig;
|
my %dbconfig;
|
||||||
my $ret;
|
|
||||||
|
|
||||||
# use generic fileRead to get configuration data
|
# use generic fileRead to get configuration data
|
||||||
my ($err, @config) = FileRead($configfilename);
|
my ($err, @config) = FileRead($configfilename);
|
||||||
@ -2103,16 +2102,16 @@ sub DbLog_readCfg($){
|
|||||||
$hash->{MODEL}="SQLITE";
|
$hash->{MODEL}="SQLITE";
|
||||||
} else {
|
} else {
|
||||||
$hash->{MODEL}="unknown";
|
$hash->{MODEL}="unknown";
|
||||||
$ret = "unknown database type";
|
|
||||||
Log3 $hash->{NAME}, 1, "Unknown database model found in configuration file $configfilename.";
|
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.";
|
Log3 $hash->{NAME}, 1, "Only MySQL/MariaDB, PostgreSQL, Oracle, SQLite are fully supported.";
|
||||||
|
return "unknown database type";
|
||||||
}
|
}
|
||||||
|
|
||||||
if($hash->{MODEL} eq "MYSQL") {
|
if($hash->{MODEL} eq "MYSQL") {
|
||||||
$hash->{UTF8} = defined($dbconfig{utf8})?$dbconfig{utf8}:0;
|
$hash->{UTF8} = defined($dbconfig{utf8})?$dbconfig{utf8}:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ret;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub DbLog_ConnectPush($;$$) {
|
sub DbLog_ConnectPush($;$$) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user