irm-1.6-b3/MDB/Common.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)
    {
        $this->warnings[] = 'database does not support getting current
            sequence value, the sequence value was incremented';
        $this->expectError(MDB_ERROR_NOT_CAPABLE);
        $id = $this->nextId($seq_name);
        $this->popExpect(MDB_ERROR_NOT_CAPABLE);
        if (MDB::isError($id)) {
            if ($id->getCode() == MDB_ERROR_NOT_CAPABLE) {
                return($this->raiseError(MDB_ERROR_NOT_CAPABLE, NULL, NULL,
                    'Current Sequence: getting current sequence value not supported'));
            }
            return($id);
        }
        return($id);
    }
function currId ( $ seq_name ) { $ this -> warnings [ ] = 'database does not support getting current
            sequence value, the sequence value was incremented' ; $ this -> expectError ( MDB_ERROR_NOT_CAPABLE ) ; $ id = $ this -> nextId ( $ seq_name ) ; $ this -> popExpect ( MDB_ERROR_NOT_CAPABLE ) ; if ( MDB :: isError ( $ id ) ) { if ( $ id -> getCode ( ) == MDB_ERROR_NOT_CAPABLE ) { return ( $ this -> raiseError ( MDB_ERROR_NOT_CAPABLE , NULL , NULL , 'Current Sequence: getting current sequence value not supported' ) ) ; } return ( $ id ) ; } return ( $ id ) ; }
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