5087: added creation date to cache reports

This commit is contained in:
following
2013-03-25 15:00:51 +01:00
parent 4ae7cab51c
commit 21d92feba0
6 changed files with 21 additions and 3 deletions
+9
View File
@@ -1421,4 +1421,13 @@
END IF;
END;");
sql_dropTrigger('cacheReportsBeforeInsert');
sql("CREATE TRIGGER `cacheReportsBeforeInsert` BEFORE INSERT ON `cache_reports`
FOR EACH ROW
BEGIN
/* dont overwrite creation date while XML client is running */
IF ISNULL(@XMLSYNC) OR @XMLSYNC!=1 THEN
SET NEW.`date_created`=NOW();
END IF;
END;");
?>