[icinga-checkins] icinga.org: icinga-core/master: idoutils: fix libdbi 0.8. 3 deprecated functions dbi_result_get_(u)long #559

git at icinga.org git at icinga.org
Wed Jan 12 14:24:19 CET 2011


Module: icinga-core
Branch: master
Commit: c1b37d49d59e57405112990aed54a578a2b64afd
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=c1b37d49d59e57405112990aed54a578a2b64afd

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed Jan 12 10:07:39 2011 +0100

idoutils: fix libdbi 0.8.3 deprecated functions dbi_result_get_(u)long #559

fixes #559

---

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

diff --git a/Changelog b/Changelog
index 2b418a9..e0caab2 100644
--- a/Changelog
+++ b/Changelog
@@ -79,6 +79,7 @@ FIXES
 * idoutils: fix solaris <= lacks asprintf (Julian Wiesner) #1048
 * idoutils: fix unfreed oci handles in prepared statements #1093
 * idoutils: increase debugoutput for conversion functions #1094
+* idoutils: fix libdbi 0.8.3 deprecated functions dbi_result_get_(u)long #559
 
 
 1.2.1 - 25/10/2010
diff --git a/module/idoutils/src/dbhandlers.c b/module/idoutils/src/dbhandlers.c
index 8184b1e..92048f0 100644
--- a/module/idoutils/src/dbhandlers.c
+++ b/module/idoutils/src/dbhandlers.c
@@ -148,7 +148,7 @@ int ido2db_get_object_id(ido2db_idi *idi, int object_type, char *n1, char *n2, u
 	if ((result = ido2db_db_query(idi, buf)) == IDO_OK) {
 		if (idi->dbinfo.dbi_result != NULL) {
 			if (dbi_result_next_row(idi->dbinfo.dbi_result)) {
-				*object_id = dbi_result_get_ulong(idi->dbinfo.dbi_result, "object_id");
+				*object_id = dbi_result_get_uint(idi->dbinfo.dbi_result, "object_id");
 			} else {
 				result = IDO_ERROR;
 			}





More information about the icinga-checkins mailing list