[icinga-checkins] icinga.org: icinga-core/mfriedrich/mysql: oracle: ndo2db_get_object_id fails to return existing IDs

git at icinga.org git at icinga.org
Tue Apr 20 14:39:08 CEST 2010


Module: icinga-core
Branch: mfriedrich/mysql
Commit: 9e6156b707447e351182242057f7a23fc8dff96c
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=9e6156b707447e351182242057f7a23fc8dff96c

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Tue Apr 20 14:35:44 2010 +0200

oracle: ndo2db_get_object_id fails to return existing IDs

---

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

diff --git a/module/idoutils/src/dbhandlers.c b/module/idoutils/src/dbhandlers.c
index 03cd69c..f76a2ea 100644
--- a/module/idoutils/src/dbhandlers.c
+++ b/module/idoutils/src/dbhandlers.c
@@ -230,6 +230,7 @@ int ndo2db_get_object_id(ndo2db_idi *idi, int object_type, char *n1, char *n2, u
 		                ndo2db_log_debug_info(NDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_query_objects_select_name1_name2(%lu) insert_id\n", *object_id);
 		        } else {
 		                ndo2db_log_debug_info(NDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_query_objects_select_name1_name2() insert_id could not be fetched\n");
+				result = NDO_ERROR;
 		        }
 
 		        /* do not free statement yet! */
@@ -270,6 +271,7 @@ int ndo2db_get_object_id(ndo2db_idi *idi, int object_type, char *n1, char *n2, u
                                 ndo2db_log_debug_info(NDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_query_objects_select_name1_null_name2(%lu) insert_id\n", *object_id);
                         } else {
                                 ndo2db_log_debug_info(NDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_query_objects_select_name1_null_name2() insert_id could not be fetched\n");
+				result = NDO_ERROR;
                         }
 
 
@@ -310,6 +312,7 @@ int ndo2db_get_object_id(ndo2db_idi *idi, int object_type, char *n1, char *n2, u
                                 ndo2db_log_debug_info(NDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_query_objects_select_name1_name2_null(%lu) insert_id\n", *object_id);
                         } else {
                                 ndo2db_log_debug_info(NDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_query_objects_select_name1_name2_null() insert_id could not be fetched\n");
+				result = NDO_ERROR;
                         }
 
 
@@ -346,6 +349,7 @@ int ndo2db_get_object_id(ndo2db_idi *idi, int object_type, char *n1, char *n2, u
                                 ndo2db_log_debug_info(NDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_query_objects_select_name1_null_name2_null(%lu) insert_id\n", *object_id);
                         } else {
                                 ndo2db_log_debug_info(NDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_query_objects_select_name1_null_name2_null() insert_id could not be fetched\n");
+				result = NDO_ERROR;
                         }
 
 





More information about the icinga-checkins mailing list