irm-1.6-b3/MDB/pgsql.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)
    {
        $seqname = $this->getSequenceName($seq_name);
        if (MDB::isError($result = $this->queryOne("SELECT last_value FROM $seqname"))) {
            return($this->raiseError(MDB_ERROR, NULL, NULL, 'currId: Unable to select from ' . $seqname) );
        }
        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 ) { $ seqname = $ this -> getSequenceName ( $ seq_name ) ; if ( MDB :: isError ( $ result = $ this -> queryOne ( " SELECT last_value FROM  $ seqname " ) ) ) { return ( $ this -> raiseError ( MDB_ERROR , NULL , NULL , 'currId: Unable to select from ' . $ seqname ) ) ; } 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