irm-1.6-b3/MDB/pgsql.php
/**
     * Read data from large object input stream.
     *
     * @param int $lob handle to a lob created by the createLob() function
     * @param blob $data reference to a variable that will hold data to be
     *      read from the large object input stream
     * @param int $length integer value that indicates the largest ammount of
     *      data to be read from the large object input stream.
     * @return mixed length on success, a MDB error on failure
     * @access private
     */
Read data from large object input stream.
@param int $lob handle to a lob created by the createLob() function
@param blob $data reference to a variable that will hold data to be
read from the large object input stream
@param int $length integer value that indicates the largest ammount of
data to be read from the large object input stream.
@return mixed length on success, a MDB error on failure
@access private
Read data from large object input stream . @param int $lob handle to a lob created by the createLob () function @param blob $data reference to a variable that will hold data to be read from the large object input stream @param int $length integer value that indicates the largest ammount of data to be read from the large object input stream . @return mixed length on success a MDB error on failure @access private
function _readResultLob($lob, &$data, $length)
    {
        $lobresult = $this->_retrieveLob($lob);
        if (MDB::isError($lobresult)) {
            return($lobresult);
        }
        $data = @pg_loread($this->lobs[$lob]['Handle'], $length);
        if (gettype($data) != 'string') {
            $this->raiseError(MDB_ERROR, NULL, NULL,
                'Read Result LOB: ' . @pg_errormessage($this->connection));
        }
        if (($length = strlen($data)) == 0) {
            $this->lobs[$lob]['EndOfLOB'] = 1;
        }
        return($length);
    }
function _readResultLob ( $ lob , & $ data , $ length ) { $ lobresult = $ this -> _retrieveLob ( $ lob ) ; if ( MDB :: isError ( $ lobresult ) ) { return ( $ lobresult ) ; } $ data = @ pg_loread ( $ this -> lobs [ $ lob ] [ 'Handle' ] , $ length ) ; if ( gettype ( $ data ) != 'string' ) { $ this -> raiseError ( MDB_ERROR , NULL , NULL , 'Read Result LOB: ' . @ pg_errormessage ( $ this -> connection ) ) ; } if ( ( $ length = strlen ( $ data ) ) == 0 ) { $ this -> lobs [ $ lob ] [ 'EndOfLOB' ] = 1 ; } return ( $ length ) ; }
Read data from large object input stream.
Read data from large object input stream .