[svn:dbd-oracle] r14596 - dbd-oracle/trunk

[email protected] Mon, 20 Dec 2010 10:11:11 -0800 (PST)
Newsgroups perl.dbd.oracle.changes
Message-ID <[email protected]>
Author: byterock
Date: Mon Dec 20 10:11:10 2010
New Revision: 14596

Modified:
   dbd-oracle/trunk/dbdimp.c
   dbd-oracle/trunk/dbdimp.h

Log:
Just checked with a 64bit box and the ub1 to ub2 change I did was not fixing any of the complaints and it may result in bad data

Modified: dbd-oracle/trunk/dbdimp.c
==============================================================================
--- dbd-oracle/trunk/dbdimp.c	(original)
+++ dbd-oracle/trunk/dbdimp.c	Mon Dec 20 10:11:10 2010
@@ -296,7 +296,7 @@
 	/* and setup the pointers in the head fb_ary struct	*/
 	Newz(42, fb_ary, sizeof(fb_ary_t), fb_ary_t);
 	Newz(42, fb_ary->abuf,		size * piece_size, ub1);
-	Newz(42, fb_ary->cb_abuf,	size * max_len, ub2);
+	Newz(42, fb_ary->cb_abuf,	size * max_len, ub1);
 	Newz(42, fb_ary->aindp,(unsigned)size,sb2);
 	Newz(42, fb_ary->arlen,(unsigned)size,ub2);
 	Newz(42, fb_ary->arcode,(unsigned)size,ub2);

Modified: dbd-oracle/trunk/dbdimp.h
==============================================================================
--- dbd-oracle/trunk/dbdimp.h	(original)
+++ dbd-oracle/trunk/dbdimp.h	Mon Dec 20 10:11:10 2010
@@ -147,7 +147,7 @@
 	ub4				piece_count;/*# of pieces retrieved*/
 	sb2				*aindp;	/* null/trunc indicator variable	*/
 	ub1				*abuf;		/* data buffer (points to sv data)	*/
-	ub2				*cb_abuf;	/*yet another buffer for picewise callbacks this means I only need to allocate memory once a prepare rather than at each fetch*/
+	ub1				*cb_abuf;	/*yet another buffer for picewise callbacks this means I only need to allocate memory once a prepare rather than at each fetch*/
 	ub2				*arlen;	/* length of returned data		*/
 	ub2				*arcode;	/* field level error status		*/
 };