mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 00:26:03 +00:00
93_DbRep: add column header for custom selects (sqlCmd), new sqlSpecial readingsDifferenceByTimeDelta for MySQL, bugfix: FHEM crash if no time-attribute is set and time
git-svn-id: https://svn.fhem.de/fhem/trunk@21473 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
631fe3a73e
commit
c812c1f6b9
@ -918,7 +918,6 @@ sub DbRep_Set($@) {
|
|||||||
$prop =~ s/<c>/,/g; # noch aus Kompatibilitätsgründen enthalten
|
$prop =~ s/<c>/,/g; # noch aus Kompatibilitätsgründen enthalten
|
||||||
$prop =~ s/(\x20)*\xbc/,/g; # Forum: https://forum.fhem.de/index.php/topic,103908.0.html
|
$prop =~ s/(\x20)*\xbc/,/g; # Forum: https://forum.fhem.de/index.php/topic,103908.0.html
|
||||||
$sqlcmd = $prop;
|
$sqlcmd = $prop;
|
||||||
Log3 ($name, 1, "DbRep $name - com: $sqlcmd");
|
|
||||||
if($sqlcmd eq "___purge_historylist___") {
|
if($sqlcmd eq "___purge_historylist___") {
|
||||||
delete($hash->{HELPER}{SQLHIST});
|
delete($hash->{HELPER}{SQLHIST});
|
||||||
DbRep_setCmdFile($name."_sqlCmdList","",$hash); # Löschen der sql History Liste im DbRep-Keyfile
|
DbRep_setCmdFile($name."_sqlCmdList","",$hash); # Löschen der sql History Liste im DbRep-Keyfile
|
||||||
|
@ -918,7 +918,6 @@ sub DbRep_Set($@) {
|
|||||||
$prop =~ s/<c>/,/g; # noch aus Kompatibilitätsgründen enthalten
|
$prop =~ s/<c>/,/g; # noch aus Kompatibilitätsgründen enthalten
|
||||||
$prop =~ s/(\x20)*\xbc/,/g; # Forum: https://forum.fhem.de/index.php/topic,103908.0.html
|
$prop =~ s/(\x20)*\xbc/,/g; # Forum: https://forum.fhem.de/index.php/topic,103908.0.html
|
||||||
$sqlcmd = $prop;
|
$sqlcmd = $prop;
|
||||||
Log3 ($name, 1, "DbRep $name - com: $sqlcmd");
|
|
||||||
if($sqlcmd eq "___purge_historylist___") {
|
if($sqlcmd eq "___purge_historylist___") {
|
||||||
delete($hash->{HELPER}{SQLHIST});
|
delete($hash->{HELPER}{SQLHIST});
|
||||||
DbRep_setCmdFile($name."_sqlCmdList","",$hash); # Löschen der sql History Liste im DbRep-Keyfile
|
DbRep_setCmdFile($name."_sqlCmdList","",$hash); # Löschen der sql History Liste im DbRep-Keyfile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user