public function _nextSequence($sequence)
    {
        $sequence = strtoupper($sequence);
        $id = $this->_lockSequence($sequence);
        $increment = $this->_connection->execute(
            "UPDATE sequences SET id=id+1 WHERE name=?", $sequence);

        return $id;
    }
public function _nextSequence($sequence)
    {
        $sequence = strtoupper($sequence);
        $id = $this->_lockSequence($sequence);
        $increment = $this->_connection->execute(
            "UPDATE sequences SET id=id+1 WHERE name=?", $sequence);

        return $id;
    }
public function _nextSequence ( $ sequence ) { $ sequence = strtoupper ( $ sequence ) ; $ id = $ this -> _lockSequence ( $ sequence ) ; $ increment = $ this -> _connection -> execute ( "UPDATE sequences SET id=id+1 WHERE name=?" , $ sequence ) ; return $ id ; }
Called within a transaction, gets the next sequence value
@access private
Called within a transaction gets the next sequence value