tarantool / tarantool-python

Python client library for Tarantool
https://www.tarantool.io
BSD 2-Clause "Simplified" License
101 stars 46 forks source link

Support error type #232

Closed DifferentialOrange closed 2 years ago

DifferentialOrange commented 2 years ago

Since version 2.4.1, responses for errors have extra information following what was described in Box protocol – responses for errors. This is a “compatible” enhancement, because clients that expect old-style server responses should ignore map components that they do not recognize. Notice, however, that there has been a renaming of a constant: formerly IPROTO_ERROR in ./box/iproto_constants.h was 0x31, now IPROTO_ERROR is 0x52 and IPROTO_ERROR_24 is 0x31.

MP_ERROR type is 3.

See doc for more details.

DifferentialOrange commented 2 years ago

It seems that to fully support MP_ERROR, https://github.com/tarantool/tarantool-python/issues/206 is a prerequisite: https://github.com/tarantool/tarantool/blob/2e9cbec3091e7c5d6ca1d7dad4305333e70f5876/src/box/iproto_features.h#L31-L42