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:
parent
d8bd08742b
commit
f21d787e15
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user