irm-1.6-b3/MDB/mysql.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->query("SELECT MAX(".$this->options['sequence_col_name'].") FROM $sequence_name", 'integer');
        if (MDB::isError($result)) {
            return($result);
        }
        return($this->fetchOne($result));
    }
function currId ( $ seq_name ) { $ sequence_name = $ this -> getSequenceName ( $ seq_name ) ; $ result = $ this -> query ( " SELECT MAX( " . $ this -> options [ 'sequence_col_name' ] . " ) FROM  $ sequence_name " , 'integer' ) ; if ( MDB :: isError ( $ result ) ) { return ( $ result ) ; } return ( $ this -> fetchOne ( $ 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