[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: fix binding NULL to name1/ 2 in oracle; cleanup code; update icinga-api

git at icinga.org git at icinga.org
Fri Jul 30 14:35:55 CEST 2010

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

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Fri Jul 30 14:28:33 2010 +0200

fix binding NULL to name1/2 in oracle; cleanup code; update icinga-api

the mysql patch in #363 introduced single quotes to binded values
in oracle. that's wrong for objects entries on name1/name2.
furthermore, NULL was binded as a string, which can't be the case
when selecting on IS NULL.

name1/2 must be explicitly binded to \0 and then NULL if occuring
NULL char*

next to that, the code is cleaned up a bit and the api submodule
pointer is uptodate for git submodule update

still, binding null values needs a rewrite - in it's own function.

refs #668
refs #622
refs #363
refs #468


 module/icinga-api                |    2 +-
 module/idoutils/src/db.c         |   54 +++++---
 module/idoutils/src/dbhandlers.c |  283 +++++++++++++++++++++++++-------------
 module/idoutils/src/dbqueries.c  |   36 ++++-
 module/idoutils/src/ido2db.c     |    3 +-
 5 files changed, 252 insertions(+), 126 deletions(-)

Diff:   https://git.icinga.org/?p=icinga-core.git;a=commitdiff;h=34cee48625186075cf44106cf94f398f114d22c3

More information about the icinga-checkins mailing list