[icinga-checkins] icinga.org: icinga-core/next: idoutils: change name of dbms_output buffer size constant

git at icinga.org git at icinga.org
Tue Oct 30 17:03:30 CET 2012


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

Author: Thomas Dressler <tdressler at tdressler.net>
Date:   Sat Oct 27 17:53:09 2012 +0200

idoutils: change name of dbms_output buffer size constant

---

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

diff --git a/module/idoutils/include/db.h b/module/idoutils/include/db.h
index 3d5e02c..2648bb5 100644
--- a/module/idoutils/include/db.h
+++ b/module/idoutils/include/db.h
@@ -166,7 +166,7 @@ int ido2db_db_trim_data_table(ido2db_idi *,char *,char *,unsigned long);
 #define OCI_VARCHAR_SIZE 4096 /* max allowed string size for varchar2 (+1) */
 #define OCI_STR_SIZE 256 /* default small string buffer size */
 #define OCI_BINDARRAY_MAX_SIZE 5000 /* default array buffer and commit size for bulk ops */
-#define OCI_OUTPUT_BUFFER_SIZE 32000 /* Buffer size for dbms_output calls */
+#define OCI_DBMS_OUTPUT_BUFFER_SIZE 32000 /* Buffer size for dbms_output calls */
 #define OCI_LOB_CHUNK_SIZE 2048 /* Buffer size for LOB operations */
 
 void ido2db_ocilib_err_handler(OCI_Error *);
diff --git a/module/idoutils/src/db.c b/module/idoutils/src/db.c
index e1b025b..f0218d3 100644
--- a/module/idoutils/src/db.c
+++ b/module/idoutils/src/db.c
@@ -7544,7 +7544,7 @@ int ido2db_oci_execute_out(OCI_Statement *st, char * fname) {
 	/**
 	 * enable dbms_output, execute statement and retrieve dbms_output lines
 	 */
-	OCI_ServerEnableOutput(cn , OCI_OUTPUT_BUFFER_SIZE, 1, 2000);
+	OCI_ServerEnableOutput(cn , OCI_DBMS_OUTPUT_BUFFER_SIZE, 1, 2000);
 	ret = OCI_Execute(st);
 	while ((p = OCI_ServerGetOutput(cn))) {
 		ido2db_log_debug_info(IDO2DB_DEBUGL_SQL, 2, "%s DBMSOUT:%s\n", fname, p);





More information about the icinga-checkins mailing list