[Zope-DB] CVS: Products/DCOracle2/DCOracle2 - DCOracle2.py:1.75

Matthew T. Kromer matt@zope.com
Mon, 15 Oct 2001 10:59:47 -0400


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

Modified Files:
	DCOracle2.py 
Log Message:
Tweak batch sizes for executemany to respect arraysize, and not go longer
than the number of rows.


=== Products/DCOracle2/DCOracle2/DCOracle2.py 1.74 => 1.75 ===
         first = 1
 
-        BATCHSZ = 1000
+        BATCHSZ = self.arraysize
+
+        if BATCHSZ > rows: BATCHSZ = rows
         notnull = []
 
         for c in xrange(columns): notnull.append(0)