[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: full rewrite of binding NULL values with oracle

git at icinga.org git at icinga.org
Sat Jul 31 00:51:08 CEST 2010


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

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Sat Jul 31 00:46:13 2010 +0200

full rewrite of binding NULL values with oracle

* taken the objects name1/2 procedure and added to a function

* everytime a char* is handed through a query, it will be checked
if NULL, and if so, the null binding function will be called.

* this is also true for values which are definitely not null in any
test case. but god knows what might change in the future?

* fully removed string literal hacks in order to prevent errors.

* all columns are now true NULL values, not some empty strings
enymore

next to that, the usual code cleanups.

fixes #668

---

 module/idoutils/include/db.h     |    3 +-
 module/idoutils/src/db.c         |   41 +++
 module/idoutils/src/dbhandlers.c |  421 ++++++++++++---------------
 module/idoutils/src/dbqueries.c  |  592 +++++++++++++++++++++++++++++++++-----
 4 files changed, 753 insertions(+), 304 deletions(-)

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




More information about the icinga-checkins mailing list