public function lastSequenceId($sequenceName)
    {
        $sql = 'SELECT PREVVAL FOR '.$this->_adapter->quoteIdentifier($sequenceName).' AS VAL FROM SYSIBM.SYSDUMMY1';
        $value = $this->_adapter->fetchOne($sql);
        return $value;
    }
public function lastSequenceId($sequenceName)
    {
        $sql = 'SELECT PREVVAL FOR '.$this->_adapter->quoteIdentifier($sequenceName).' AS VAL FROM SYSIBM.SYSDUMMY1';
        $value = $this->_adapter->fetchOne($sql);
        return $value;
    }
public function lastSequenceId ( $ sequenceName ) { $ sql = 'SELECT PREVVAL FOR ' . $ this -> _adapter -> quoteIdentifier ( $ sequenceName ) . ' AS VAL FROM SYSIBM.SYSDUMMY1' ; $ value = $ this -> _adapter -> fetchOne ( $ sql ) ; return $ value ; }
DB2-specific last sequence id

@param string $sequenceName
@return integer
DB2 - specific last sequence id