Reading CLOB field in DB2

admin

Administrator
Staff member
Hi,

I had to convert a DB2 field to CLOB and now I can't seem to be able to read from it (but I am able to write to it).

Here's the code I have been working with:

@$this->result = odbc_exec($this->link_id, $this->aquery);
@odbc_longreadlen($this->result, 160000);
if (! $this->result) {
$this->php_errormsg = $php_errormsg;
$this->success = 4;
return false;
}

This worked fine for LONGVARCHAR, but fails with a CLOB field.

Any help would be greatly apreciated!

Thank-you!
Carl
<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
 
Back
Top