pyorient icon indicating copy to clipboard operation
pyorient copied to clipboard

updated SUPPORTED_PROTOCOL constant to 37

Open rrmerugu opened this issue 6 years ago • 3 comments

this shall possibly support orientdb 3.0.0

rrmerugu avatar May 13 '18 20:05 rrmerugu

may be this shall call for version increment also !! in constants.py !

rrmerugu avatar May 13 '18 20:05 rrmerugu

@Ostico are there any modifications needed for this codebase to support orientdb 3.0.0 !!

rrmerugu avatar May 15 '18 07:05 rrmerugu

Hi @rrmerugu,

Unfortunately, this solution won't work with OrientDB 3.0.3 and later.

It now adds a check to protocol 37 during the connect phase to see if a handshake were used.

It fails otherwise.

The simplest solution is to still use protocol 36 (OrientDB will adjust accordingly) until the handshake, etc. can be implemented and to comment out this in orient.py:

        if self.protocol > SUPPORTED_PROTOCOL:
            raise PyOrientWrongProtocolVersionException(
                "Protocol version " + str(self.protocol) +
                " is not supported yet by this client.", [])

OrientDBColin avatar Aug 06 '18 19:08 OrientDBColin