[Zope-Checkins] CVS: Products/DCOracle2/src - dco2.c:1.137
Chris Withers
chris at simplistix.co.uk
Wed Feb 25 18:11:20 EST 2004
Update of /cvs-repository/Products/DCOracle2/src
In directory cvs.zope.org:/tmp/cvs-serv31377/src
Modified Files:
dco2.c
Log Message:
Fixed a failing test due to a zero-length number problem.
=== Products/DCOracle2/src/dco2.c 1.136 => 1.137 ===
--- Products/DCOracle2/src/dco2.c:1.136 Wed Aug 27 11:51:30 2003
+++ Products/DCOracle2/src/dco2.c Wed Feb 25 18:10:49 2004
@@ -7319,6 +7319,12 @@
scale));
/* What is the output type going to be? */
+ if (len < 1) {
+ TRACE(T_EXIT,("ss","CONVERTOUTF(SQLT_VNU)","NULL (0 len)"));
+ Py_INCREF(Py_None);
+ return Py_None;
+ }
+
status =OCINumberIsInt(sc->errhp, data, &isint);
if (status != OCI_SUCCESS) {
RaiseOCIError(sc->errhp, OCI_HTYPE_ERROR);
More information about the Zope-Checkins
mailing list