irm-1.6-b3/MDB/pgsql.php
/**
     * fetch a float value from a result set
     *
     * @param int $lob handle to a lob created by the createLob() function
     * @return mixed MDB_OK on success, a MDB error on failure
     * @access private
     */
fetch a float value from a result set
@param int $lob handle to a lob created by the createLob() function
@return mixed MDB_OK on success, a MDB error on failure
@access private
fetch a float value from a result set @param int $lob handle to a lob created by the createLob () function @return mixed MDB_OK on success a MDB error on failure @access private
function _retrieveLob($lob)
    {
        if (!isset($this->lobs[$lob])) {
            return($this->raiseError(MDB_ERROR_INVALID, NULL, NULL,
                'Retrieve LOB: did not specified a valid lob'));
        }
        if (!isset($this->lobs[$lob]['Value'])) {
            if ($this->auto_commit) {
                if (!@pg_exec($this->connection, 'BEGIN')) {
                    return($this->raiseError(MDB_ERROR,  NULL, NULL,
                        'Retrieve LOB: ' . @pg_errormessage($this->connection)));
                }
                $this->lobs[$lob]['InTransaction'] = 1;
            }
            $this->lobs[$lob]['Value'] = $this->fetch($this->lobs[$lob]['Result'], $this->lobs[$lob]['Row'], $this->lobs[$lob]['Field']);
            if (!($this->lobs[$lob]['Handle'] = @pg_loopen($this->connection, $this->lobs[$lob]['Value'], 'r'))) {
                if (isset($this->lobs[$lob]['InTransaction'])) {
                    @pg_exec($this->connection, 'END');
                    unset($this->lobs[$lob]['InTransaction']);
                }
                unset($this->lobs[$lob]['Value']);
                return($this->raiseError(MDB_ERROR, NULL, NULL,
                    'Retrieve LOB: ' . @pg_errormessage($this->connection)));
            }
        }
        return(MDB_OK);
    }
function _retrieveLob ( $ lob ) { if ( ! isset ( $ this -> lobs [ $ lob ] ) ) { return ( $ this -> raiseError ( MDB_ERROR_INVALID , NULL , NULL , 'Retrieve LOB: did not specified a valid lob' ) ) ; } if ( ! isset ( $ this -> lobs [ $ lob ] [ 'Value' ] ) ) { if ( $ this -> auto_commit ) { if ( ! @ pg_exec ( $ this -> connection , 'BEGIN' ) ) { return ( $ this -> raiseError ( MDB_ERROR , NULL , NULL , 'Retrieve LOB: ' . @ pg_errormessage ( $ this -> connection ) ) ) ; } $ this -> lobs [ $ lob ] [ 'InTransaction' ] = 1 ; } $ this -> lobs [ $ lob ] [ 'Value' ] = $ this -> fetch ( $ this -> lobs [ $ lob ] [ 'Result' ] , $ this -> lobs [ $ lob ] [ 'Row' ] , $ this -> lobs [ $ lob ] [ 'Field' ] ) ; if ( ! ( $ this -> lobs [ $ lob ] [ 'Handle' ] = @ pg_loopen ( $ this -> connection , $ this -> lobs [ $ lob ] [ 'Value' ] , 'r' ) ) ) { if ( isset ( $ this -> lobs [ $ lob ] [ 'InTransaction' ] ) ) { @ pg_exec ( $ this -> connection , 'END' ) ; unset ( $ this -> lobs [ $ lob ] [ 'InTransaction' ] ) ; } unset ( $ this -> lobs [ $ lob ] [ 'Value' ] ) ; return ( $ this -> raiseError ( MDB_ERROR , NULL , NULL , 'Retrieve LOB: ' . @ pg_errormessage ( $ this -> connection ) ) ) ; } } return ( MDB_OK ) ; }
fetch a float value from a result set
 @param int $lob handle to a lob created by the createLob() function
 @return mixed MDB_OK on success, a MDB error on failure
 @access private
fetch a float value from a result set @param int $lob handle to a lob created by the createLob () function @return mixed MDB_OK on success a MDB error on failure @access private