mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
93_DbRep: write TYPE uppercase with writeToDB option, minor fix
git-svn-id: https://svn.fhem.de/fhem/trunk@27030 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
210fac1060
commit
503724458a
@ -59,7 +59,7 @@ no if $] >= 5.017011, warnings => 'experimental::smartmatch';
|
|||||||
|
|
||||||
# Version History intern
|
# Version History intern
|
||||||
my %DbRep_vNotesIntern = (
|
my %DbRep_vNotesIntern = (
|
||||||
"8.51.1" => "01.01.2023 write TYPE uppercase with writeToDB option, Commandref edited ",
|
"8.51.1" => "01.01.2023 write TYPE uppercase with writeToDB option, Commandref edited, fix add SQL Cache History ",
|
||||||
"8.51.0" => "02.01.2023 online formatting of sqlCmd, sqlCmdHistory, sqlSpecial, Commandref edited, get dbValue removed ".
|
"8.51.0" => "02.01.2023 online formatting of sqlCmd, sqlCmdHistory, sqlSpecial, Commandref edited, get dbValue removed ".
|
||||||
"sqlCmdBlocking customized like sqlCmd, bugfix avgTimeWeightMean ",
|
"sqlCmdBlocking customized like sqlCmd, bugfix avgTimeWeightMean ",
|
||||||
"8.50.10" => "01.01.2023 Commandref edited ",
|
"8.50.10" => "01.01.2023 Commandref edited ",
|
||||||
@ -7080,7 +7080,7 @@ sub DbRep_sqlCmdDone {
|
|||||||
|
|
||||||
delete($hash->{HELPER}{RUNNING_PID});
|
delete($hash->{HELPER}{RUNNING_PID});
|
||||||
|
|
||||||
my $tmpsql = delete $data{DbRep}{$name}{sqlcache}{temp}; # SQL incl. Formatierung aus Zwischenspeicher holen
|
my $tmpsql = $data{DbRep}{$name}{sqlcache}{temp}; # SQL incl. Formatierung aus Zwischenspeicher holen
|
||||||
my ($erread, $state) = DbRep_afterproc ($hash, $hash->{LASTCMD}); # Befehl nach Procedure ausführen
|
my ($erread, $state) = DbRep_afterproc ($hash, $hash->{LASTCMD}); # Befehl nach Procedure ausführen
|
||||||
|
|
||||||
if ($err) {
|
if ($err) {
|
||||||
@ -7093,6 +7093,8 @@ sub DbRep_sqlCmdDone {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DbRep_addSQLcmdCache ($name); # Drop-Down Liste bisherige sqlCmd-Befehle füllen und in Key-File sichern
|
||||||
|
|
||||||
my ($rt,$brt) = split ",", $bt;
|
my ($rt,$brt) = split ",", $bt;
|
||||||
my $srf = AttrVal($name, "sqlResultFormat", "separated");
|
my $srf = AttrVal($name, "sqlResultFormat", "separated");
|
||||||
my $srs = AttrVal($name, "sqlResultFieldSep", "|");
|
my $srs = AttrVal($name, "sqlResultFieldSep", "|");
|
||||||
@ -7105,8 +7107,6 @@ sub DbRep_sqlCmdDone {
|
|||||||
ReadingsBulkUpdateValue ($hash, 'sqlCmd', $tmpsql);
|
ReadingsBulkUpdateValue ($hash, 'sqlCmd', $tmpsql);
|
||||||
ReadingsBulkUpdateValue ($hash, 'sqlResultNumRows', $nrows);
|
ReadingsBulkUpdateValue ($hash, 'sqlResultNumRows', $nrows);
|
||||||
|
|
||||||
DbRep_addSQLcmdCache ($name); # Drop-Down Liste bisherige sqlCmd-Befehle füllen und in Key-File sichern
|
|
||||||
|
|
||||||
if ($srf eq "sline") {
|
if ($srf eq "sline") {
|
||||||
$rowstring =~ s/§/]|[/g;
|
$rowstring =~ s/§/]|[/g;
|
||||||
$rowstring =~ s/\|°escaped°\|/§/g;
|
$rowstring =~ s/\|°escaped°\|/§/g;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user