[Zope-Checkins] CVS: Products/DCOracle2/src - dco2.c:1.116
Matthew T. Kromer
matt@zope.com
Fri, 16 Aug 2002 10:17:48 -0400
Update of /cvs-repository/Products/DCOracle2/src
In directory cvs.zope.org:/tmp/cvs-serv14029/src
Modified Files:
dco2.c
Log Message:
Prior commit made me notice the handle type was wrong for the error raises in
the describe function. Corrected.
=== Products/DCOracle2/src/dco2.c 1.115 => 1.116 ===
--- Products/DCOracle2/src/dco2.c:1.115 Fri Aug 16 10:10:52 2002
+++ Products/DCOracle2/src/dco2.c Fri Aug 16 10:17:48 2002
@@ -2304,7 +2304,7 @@
TRACE(T_HRETURN,("sAR", "OCIHandleAlloc", deschp, status));
if (status != OCI_SUCCESS)
- return RaiseOCIError(self->envhp, OCI_HTYPE_ERROR);
+ return RaiseOCIError(self->envhp, OCI_HTYPE_ENV);
/* Public synonym enablemement */
TRACE(T_HCALL,("ssAs", "OCIAttrSet", "OCI_HTYPE_DESCRIBE",
@@ -2314,7 +2314,7 @@
TRACE(T_HRETURN,("sR", "OCIAttrSet", status));
if (status != OCI_SUCCESS)
- return RaiseOCIError(self->envhp, OCI_HTYPE_ERROR);
+ return RaiseOCIError(self->errhp, OCI_HTYPE_ERROR);
TRACE(T_CALL,("sSsA", "OCIDescribeAny", name, "OCI_PTYPE_UNK",