[icinga-checkins] icinga.org: icinga-core/mfriedrich/ido: idoutils: fix faulty timestamp from #905 on oracle

git at icinga.org git at icinga.org
Sun Aug 26 01:48:38 CEST 2012


Module: icinga-core
Branch: mfriedrich/ido
Commit: 4468b2518b134ef158824edbd701a925c3f7472f
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=4468b2518b134ef158824edbd701a925c3f7472f

Author: Michael Friedrich <michael.friedrich at gmail.com>
Date:   Sun Aug 26 01:47:53 2012 +0200

idoutils: fix faulty timestamp from #905 on oracle

refs #905

---

 module/idoutils/src/db.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/module/idoutils/src/db.c b/module/idoutils/src/db.c
index 54b68fd..98cfe79 100644
--- a/module/idoutils/src/db.c
+++ b/module/idoutils/src/db.c
@@ -4532,7 +4532,7 @@ int ido2db_oci_prepared_statement_programstatus(ido2db_idi *idi) {
 	             "process_performance_data=:X16, obsess_over_hosts=:X17, "
 	             "obsess_over_services=:X18, modified_host_attributes=:X19, "
 	             "modified_service_attributes=:X20, global_host_event_handler=:X21, "
-	             "global_service_event_handler=:X22, disable_notif_expire_time=:X23 "
+	             "global_service_event_handler=:X22, disable_notif_expire_time=unixts2localts(:X23) "
 	             "WHEN NOT MATCHED THEN "
 	             "INSERT (id, instance_id, status_update_time, "
 	             "program_start_time, is_currently_running, "
@@ -4549,7 +4549,7 @@ int ido2db_oci_prepared_statement_programstatus(ido2db_idi *idi) {
 	             "VALUES (seq_programstatus.nextval, :X1, unixts2localts(:X2) , "
 	             "unixts2localts(:X3) , '1', :X4, :X5, "
 	             "unixts2localts(:X6), unixts2localts(:X7) , :X8, :X9, :X10, :X11, "
-	             ":X12, :X13, :X14, :X15, :X16, :X17, :X18, :X19, :X20, :X21, :X22, :X23)",
+	             ":X12, :X13, :X14, :X15, :X16, :X17, :X18, :X19, :X20, :X21, :X22, unixts2localts(:X23) )",
 	             ido2db_db_tablenames[IDO2DB_DBTABLE_PROGRAMSTATUS]) == -1) {
 		buf = NULL;
 	}





More information about the icinga-checkins mailing list