irm-1.6-b3/MDB/ibase.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 = strtoupper($this->getSequenceName($seq_name));
        $query = "SELECT RDB\$GENERATOR_ID FROM RDB\$GENERATORS WHERE RDB\$GENERATOR_NAME='$sequence_name'";
        if (MDB::isError($result = $this->queryOne($query))) {
            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 ) { $ sequence_name = strtoupper ( $ this -> getSequenceName ( $ seq_name ) ) ; $ query = " SELECT RDB \$ GENERATOR_ID FROM RDB \$ GENERATORS WHERE RDB \$ GENERATOR_NAME=' $ sequence_name ' " ; if ( MDB :: isError ( $ result = $ this -> queryOne ( $ query ) ) ) { 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
//$sequence_name = $this->getSequenceName($seq_name); //var_dump($result); ==> null