2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

93_DbRep: contrib v 8.47.0

git-svn-id: https://svn.fhem.de/fhem/trunk@25491 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2022-01-17 22:19:27 +00:00
parent d8bd08742b
commit f21d787e15

View File

@ -998,7 +998,13 @@ sub DbRep_Set {
if ($sqlcmd =~ /^ckey:/ix) {
my $key = (split ":", $sqlcmd)[1];
$sqlcmd = $data{DbRep}{$name}{sqlcache}{cmd}{$key} if (exists $data{DbRep}{$name}{sqlcache}{cmd}{$key});
if (exists $data{DbRep}{$name}{sqlcache}{cmd}{$key}) {
$sqlcmd = $data{DbRep}{$name}{sqlcache}{cmd}{$key};
}
else {
return qq{SQL statement with key "$key" doesn't exists in history};
}
}
$sqlcmd .= ";" if ($sqlcmd !~ m/\;$/x);