2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-15 04:20:56 +00:00

93_DbLog.pm: Fixed reduceLog typo when PostgreSQL is used. (by ironalf, Forum: http://forum.fhem.de/index.php/topic,41089.msg407971.html#msg407971 )

git-svn-id: https://svn.fhem.de/fhem/trunk@10795 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rapster 2016-02-11 08:52:34 +00:00
parent 3ac7063ea0
commit 49f0659dff

View File

@ -1334,7 +1334,7 @@ sub DbLog_reduceLog($@) {
if ($hash->{DBMODEL} eq 'SQLITE') { $cmd = "datetime('now', '-$a[2] days')"; }
elsif ($hash->{DBMODEL} eq 'MYSQL') { $cmd = "DATE_SUB(CURDATE(),INTERVAL $a[2] DAY)"; }
elsif ($hash->{DBMODEL} eq 'POSTGRESQL') { $cmd = "NOW() - INTERVAL '$a[2] DAY"; }
elsif ($hash->{DBMODEL} eq 'POSTGRESQL') { $cmd = "NOW() - INTERVAL '$a[2]' DAY"; }
else { $ret = 'Unknown database type.'; }
if ($cmd) {