[Zope-Checkins] CVS: Products/DCOracle2/src - dco2.c:1.99

Matthew T. Kromer matt@zope.com
Mon, 31 Dec 2001 11:01:26 -0500


Update of /cvs-repository/Products/DCOracle2/src
In directory cvs.zope.org:/tmp/cvs-serv18245/src

Modified Files:
	dco2.c 
Log Message:
Updated corporate name in comment block, changed date conversion to return
None on 0 length date.


=== Products/DCOracle2/src/dco2.c 1.98 => 1.99 ===
 ***************************************************************************
 
-Copyright (C) 2000, Digital Creations, Fredericksburg, VA, USA.  
+Copyright (C) 2000, 2001, 2002 Zope Corporation, Fredericksburg, VA, USA.  
 All rights reserved.
 
   Redistribution and use in source and binary forms, with or without
@@ -20,16 +20,16 @@
       the documentation and/or other materials provided with the
       distribution.
   
-    o Neither the name of Digital Creations nor the names of its
+    o Neither the name of Zope Corporation nor the names of its
       contributors may be used to endorse or promote products derived
       from this software without specific prior written permission.
   
   
-  THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS AND CONTRIBUTORS *AS
+  THIS SOFTWARE IS PROVIDED BY ZOPE CORPORATION AND CONTRIBUTORS *AS
   IS* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-  PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL DIGITAL
-  CREATIONS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+  PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL ZOPE
+  CORPORATION OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
   INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
   BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
   OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
@@ -2798,8 +2798,8 @@
 			valuep, valuesz,
 			self->bind[pos].dty, *indp));
 
-		TRACE((T_CALL | T_INFO),("ssdAdd","OCIBindByPos","supplemental",
-			nelem, nelemp, mode, *alenp));
+		TRACE((T_CALL | T_INFO),("ssdddd","OCIBindByPos","supplemental",
+			nelem, *nelemp, mode, *alenp));
 
 		TRACE((T_CALL | T_INFO),("ssdAAA","OCIBindByPos","arrays",
 			nelem, indp, alenp, rcodep));
@@ -5719,7 +5719,13 @@
 	char second;
 	char buf[64];
 
-	TRACE(T_ENTRY,("sA", "CONVERTOUTF(SQLT_DAT)", data));
+	TRACE(T_ENTRY,("sAd", "CONVERTOUTF(SQLT_DAT)", data, len));
+
+	if (len == 0) {
+		Py_INCREF(Py_None);
+		TRACE(T_EXIT,("ss", "CONVERTOUTF(SQLT_DAT)", "None"));
+		return Py_None;
+	}
 
 	c = (char *) data;