Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#107 Oracle Driver - LOB Output Bind Variables

open
nobody
None
5
2009-08-06
2009-08-06
No

ADODB V5.09 25 June 2009 and prior versions contain a defect in the adodb-oci8.inc.php Oracle driver which prevents the return of LOB data into Bind Variables. The problem is on line 975:

$this->_refLOBs[$numlob]['VAR'] = $var;

This simply assigns the (empty) value of $var to the array. What is needed is to assign a REFERENCE to $var to the array because that is the 'location' into which the LOB will be placed :

$this->_refLOBs[$numlob]['VAR'] = &$var;

This change enables the results to be placed into the correct storage location (variable) provided by the calling process in the OutParameter bind call.

Discussion

  • Modified adodb-oci8.inc.php driver to fix LOB Output Bind problem.

     
    Attachments