strip log time for last-log-statistics

This commit is contained in:
following
2013-04-13 17:19:54 +02:00
parent 2265d6a623
commit 31f5a7f036
+1 -1
View File
@@ -282,7 +282,7 @@
END IF;
IF nFound!=0 THEN
SELECT `date` INTO nDate FROM `cache_logs` WHERE `cache_id`=nCacheId AND `type` IN (1, 7) ORDER BY `date` DESC LIMIT 1;
SELECT LEFT(`date`,10) INTO nDate FROM `cache_logs` WHERE `cache_id`=nCacheId AND `type` IN (1, 7) ORDER BY `date` DESC LIMIT 1;
UPDATE `stat_caches` SET `last_found`=nDate WHERE `cache_id`=nCacheId;
END IF;