2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-28 17:12:32 +00:00

configDB: version for debug only

git-svn-id: https://svn.fhem.de/fhem/trunk@22288 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2020-06-27 17:35:34 +00:00
parent 972979c277
commit 815d27b00f

View File

@ -536,10 +536,14 @@ sub cfgDB_SaveState {
$val =~ s/;/;;/g;
$val =~ s/\n/\\\n/g;
$out = "setstate $d $rd->{TIME} $c $val";
if (length($out) > 65530) {
Debug "setstate $d $c: value too long!";
} else {
push @rowList, $out;
}
}
}
}
my $fhem_dbh = _cfgDB_Connect;
$fhem_dbh->do("DELETE FROM fhemstate");