mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 18:56:03 +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) {
|
if ($sqlcmd =~ /^ckey:/ix) {
|
||||||
my $key = (split ":", $sqlcmd)[1];
|
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);
|
$sqlcmd .= ";" if ($sqlcmd !~ m/\;$/x);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user