[Zope-Checkins] CVS: Products/DCOracle2/DCOracle2 - DCOracle2.py:1.95

Matthew T. Kromer matt@zope.com
Mon, 9 Sep 2002 09:22:29 -0400


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

Modified Files:
	DCOracle2.py 
Log Message:
Check in fix for collector issue 64, using LONG parameters in executemany()


=== Products/DCOracle2/DCOracle2/DCOracle2.py 1.94 => 1.95 ===
--- Products/DCOracle2/DCOracle2/DCOracle2.py:1.94	Wed Aug 21 11:31:11 2002
+++ Products/DCOracle2/DCOracle2/DCOracle2.py	Mon Sep  9 09:22:29 2002
@@ -1072,6 +1072,10 @@
                 elif t == types.IntType:
                     size[c] = 4 # XXX WRONG on 64 bit machines
                     mytype = 'SQLT_INT'
+                elif t == types.LongType:
+                    size[c] = 45 # Punt on size to 22 base 100 digits
+                    mytype = 'SQLT_STR'
+                    p = str(p)  # Convert the long to a string
                 else:
                     mytype = 'SQLT_STR'