irm-1.6-b3/MDB/oci8.php
/**
     * returns the current id of a sequence
     *
     * @param string $seq_name name of the sequence
     * @return mixed MDB_Error or id
     * @access public
     */
returns the current id of a sequence
@param string $seq_name name of the sequence
@return mixed MDB_Error or id
@access public
returns the current id of a sequence @param string $seq_name name of the sequence @return mixed MDB_Error or id @access public
function currId($seq_name)
    {
        $sequence_name = $this->getSequenceName($seq_name);
        $result = $this->_doQuery("SELECT $sequence_name.currval FROM DUAL");
        if (MDB::isError($result)) {
            return($this->raiseError(MDB_ERROR, NULL, NULL,
                'currId: unable to select from ' . $seq_name) );
        }
        $result = $this->fetchOne($result);
        if (!is_numeric($result)) {
            return($this->raiseError(MDB_ERROR, NULL, NULL,
                'currId: could not find value in sequence table'));
        }
        return($result);
    }
function currId ( $ seq_name ) { $ sequence_name = $ this -> getSequenceName ( $ seq_name ) ; $ result = $ this -> _doQuery ( " SELECT  $ sequence_name .currval FROM DUAL " ) ; if ( MDB :: isError ( $ result ) ) { return ( $ this -> raiseError ( MDB_ERROR , NULL , NULL , 'currId: unable to select from ' . $ seq_name ) ) ; } $ result = $ this -> fetchOne ( $ result ) ; if ( ! is_numeric ( $ result ) ) { return ( $ this -> raiseError ( MDB_ERROR , NULL , NULL , 'currId: could not find value in sequence table' ) ) ; } return ( $ result ) ; }
returns the current id of a sequence
 @param string $seq_name name of the sequence
 @return mixed MDB_Error or id
 @access public
returns the current id of a sequence @param string $seq_name name of the sequence @return mixed MDB_Error or id @access public