-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writing byte[] values into varbinary fields fails #144
Comments
Possible solution: implement encoding procedure as suggested in tarantool/tarantool#1629 (comment) |
space operations (IPROTO_SELECT, IPROTO_INSERT and etc.)We have correctly varbinary work with space iproto methods without touching the lua world(i.e. not IPROTO_EVAL/CALL) (you can see the correct work here #228). lua world operations (IPROTO_CALL, IPROTO_EVAL)In the lua world, we accept a string because there is no easy way to pass MP_BIN to lua without
We can implement this only in lua code, we just accept MP_BIN as lua string from IPROTO(java connector). Without any handlers on the lua side, we can't pass true MP_BIN in space. proposalIn my opinion there is only one w/a how to use Java byte array, and that is using string field in Tarantool space and StringToByteArrayConverter in cartridge-java. |
Related (in context of crud): tarantool/crud#298 |
Having the following space structure:
and trying to write a byte value into it:
it fails with the following error:
Expected behavior: byte arrays are correctly encoded and saved into
varbinary
fields.Related to tarantool/tarantool#1629
The text was updated successfully, but these errors were encountered: