[Zope-DB] CVS: Products/DCOracle2/src - dco2.c:1.93

Matthew T. Kromer matt@zope.com
Mon, 15 Oct 2001 11:01:38 -0400


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

Modified Files:
	dco2.c 
Log Message:
Change PL/SQL array bind setup; if the statement isnt type OCI_STMT_BEGIN 
(and thus is not a PL/SQL block) then we can't be doing an array bind.  Also,
if doing a dynamic bind, don't clear the mode back to OCI_DEFAULT.


=== Products/DCOracle2/src/dco2.c 1.92 => 1.93 ===
 		*/
 
-	 	if (bao->flags & BAO_STATIC && valuesz < 32767) {
-			mode = OCI_DEFAULT;
+	 	if ((bao->flags & BAO_STATIC && valuesz < 32767) ||
+			self->type != OCI_STMT_BEGIN /* no array not pl/sql*/) {
+			if (bao->flags & BAO_STATIC)
+				mode = OCI_DEFAULT;
 			nelem = 0;
 			nelemp = NULL;	/* ugh */
 		}