tuple: add check string check to tuple_field_uuid()
In case we are updating "cluster" field in on_replace_dd_schema trigger we do not check verifying that value corresponding to "cluster" key is uuid. Meanwhile in contrast to other tuple_field_*() decoding functions tuple_field_uuid() EXPECTS that passed value is type of mp_string. So let's add extra string check to tuple_field_uuid(). Closes #6332
Showing
- changelogs/unreleased/gh-6332-crash-on-replace-in-schema.md 4 additions, 0 deletionschangelogs/unreleased/gh-6332-crash-on-replace-in-schema.md
- src/box/tuple.h 1 addition, 1 deletionsrc/box/tuple.h
- test/box/gh-6332-on-replace-schema.result 8 additions, 1 deletiontest/box/gh-6332-on-replace-schema.result
- test/box/gh-6332-on-replace-schema.test.lua 2 additions, 1 deletiontest/box/gh-6332-on-replace-schema.test.lua
Please register or sign in to comment