summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/omoracle/omoracle.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/omoracle/omoracle.c b/plugins/omoracle/omoracle.c
index d1b3b955..331b7dd4 100644
--- a/plugins/omoracle/omoracle.c
+++ b/plugins/omoracle/omoracle.c
@@ -342,13 +342,12 @@ static int insert_to_db(instanceData* pData)
OCIStmtExecute(pData->service,
pData->statement,
pData->error,
- pData->batch.n, 0, NULL, NULL, OCI_DEFAULT));
+ pData->batch.n, 0, NULL, NULL,
+ OCI_BATCH_ERRORS));
- CHECKERR(pData->error,
- OCITransCommit(pData->service, pData->error, 0));
-
- pData->batch.n = 0;
finalize_it:
+ pData->batch.n = 0;
+ OCITransCommit(pData->service, pData->error, 0);
dbgprintf ("omoracle insertion to DB %s\n", iRet == RS_RET_OK ?
"succeeded" : "did not succeed");
RETiRet;