[Zope-Checkins] CVS: Products/DCOracle2/src - dco2.c:1.104.4.3
Matthew T. Kromer
matt@zope.com
Mon, 25 Feb 2002 11:17:22 -0500
Update of /cvs-repository/Products/DCOracle2/src
In directory cvs.zope.org:/tmp/cvs-serv1157/src
Modified Files:
Tag: dco2-object-branch
dco2.c
Log Message:
Change default array size to 20 rather than 200 (same for prefetch size)
and change LobLocators to always allocate an error handle (normal code path
does not call with alloc=1, because it is swapping locator handles).
=== Products/DCOracle2/src/dco2.c 1.104.4.2 => 1.104.4.3 ===
}
- /* Allocate the per-locator error handle */
- TRACE(T_HCALL,("sAs","OCIHandleAlloc",&lob->errhp,
- "OCI_HTYPE_ERROR"));
- status = OCIHandleAlloc(sc->envhp, (dvoid **)&lob->errhp,
- OCI_HTYPE_ERROR, 0, NULL);
- TRACE(T_RETURN,("sRA","OCIHandleAlloc",status,lob->errhp));
+ }
- if (status != OCI_SUCCESS) {
- lob->errhp = NULL;
- RaiseOCIError(sc->envhp, OCI_HTYPE_ENV);
- Py_DECREF(lob);
- return NULL;
- }
+ /* Allocate the per-locator error handle */
+ TRACE(T_HCALL,("sAs","OCIHandleAlloc",&lob->errhp,
+ "OCI_HTYPE_ERROR"));
+ status = OCIHandleAlloc(sc->envhp, (dvoid **)&lob->errhp,
+ OCI_HTYPE_ERROR, 0, NULL);
+ TRACE(T_RETURN,("sRA","OCIHandleAlloc",status,lob->errhp));
+
+ if (status != OCI_SUCCESS) {
+ lob->errhp = NULL;
+ RaiseOCIError(sc->envhp, OCI_HTYPE_ENV);
+ Py_DECREF(lob);
+ return NULL;
}
TRACE(T_EXIT,("sA", "_LobLocator_alloc", lob));