Silly me you do need it so rare that I use it day to day.

 

In my case I usualy use it like this

 

   $c->bind_param_inout(":p_new_id",\$p_new_id,SQL_DECIMAL);

 

or more properly


 $c->bind_param_inout(":p_new_id",\$p_new_id,ORA_NUMBER);

 

 

basiclly not to get into the low down stuff in OCI we have to tell 
OCIBindByName how many bytes to expect for this bind.

 

 

from the OCI doc

 

'The size in bytes of the data value pointed to by dvoid pointer valuepThe size 
in bytes of the data value pointed to by dvoid pointer valuep" 

 

 

Hope this helps.

 

cheers
 
> CC: [email protected]
> From: [email protected]
> To: [email protected]
> Subject: Re: DBI bind_param_inout question
> Date: Mon, 8 Mar 2010 17:11:34 -0700
> 
> 
> On Mar 8, 2010, at 4:52 PM, John Scoles wrote:
> 
> >
> > depends on the DBD::Driver implimentation.
> >
> >
> >
> > In DBD::Oracle the maxlenth usually means nothing. Not sure about 
> > other drivers.
> >
> >
> >
> > which one are you using?
> >
> 
> I'm using oracle. I get an error if I don't include it, but from what 
> you're saying it's just a dummy value, it just has to have a value?
> 
> -- 
> Bruce Johnson
> University of Arizona
> College of Pharmacy
> Information Technology Group
> 
> Institutions do not have opinions, merely customs
> 
> 
                                          
_________________________________________________________________
Take your contacts everywhere
http://go.microsoft.com/?linkid=9712959

Reply via email to