2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-09 20:57:11 +00:00

93_DbRep: fix don't get the real min timestamp in special cases

git-svn-id: https://svn.fhem.de/fhem/trunk@17501 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2018-10-10 16:06:51 +00:00
parent 2661af4859
commit dcce5b5fc5
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 93_DbRep: fix don't get the real min timestamp in special cases
- bugfix: 51_MOBILEALERTS: Fix temperature for MA10320PRO
- change: 93_DbLog, 93_DbRep: minor fix time until DB is closed
- change: 38_netatmo: changed weathermap calls to new endpoints

View File

@ -42,6 +42,7 @@ use warnings;
# Versions History intern
our %DbRep_vNotesIntern = (
"8.2.2" => "07.10.2018 DbRep_getMinTs changed, fix don't get the real min timestamp in rare cases ",
"8.2.1" => "07.10.2018 \$hash->{dbloghash}{HELPER}{REOPEN_RUNS_UNTIL} contains the time until DB is closed ",
"8.2.0" => "05.10.2018 direct help for attributes ",
"8.1.0" => "02.10.2018 new get versionNotes command ",
@ -262,6 +263,7 @@ our %DbRep_vNotesIntern = (
# Versions History extern:
our %DbRep_vNotesExtern = (
"8.2.2" => "07.10.2018 fix don't get the real min timestamp in rare cases ",
"8.2.0" => "05.10.2018 direct help for attributes ",
"8.1.0" => "01.10.2018 new get versionNotes command ",
"8.0.0" => "11.09.2018 get filesize in DbRep_WriteToDumpFile corrected, restoreMySQL for clientSide dumps, minor fixes ",
@ -1472,7 +1474,8 @@ sub DbRep_getMinTs($) {
my $st = [gettimeofday];
# eval { $mints = $dbh->selectrow_array("SELECT min(TIMESTAMP) FROM history;"); };
eval { $mints = $dbh->selectrow_array("select TIMESTAMP from history limit 1;"); };
# eval { $mints = $dbh->selectrow_array("select TIMESTAMP from history limit 1;"); };
eval { $mints = $dbh->selectrow_array("select TIMESTAMP from history order by TIMESTAMP limit 1;"); };
$dbh->disconnect;