Skip to content
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

Binary fields are written as ByteArray but read as String #39

Open
vfouqueron opened this issue Sep 21, 2022 · 0 comments
Open

Binary fields are written as ByteArray but read as String #39

vfouqueron opened this issue Sep 21, 2022 · 0 comments

Comments

@vfouqueron
Copy link

I'm using the connector with Spring R2dbc data library. I'm trying to write an UUID field as a binary (MariaDB 10.6).
On insertion, I have a custom converter from UUID to ByteBuffer that works fine and data is correctly inserted. However, when reading the data, I'm going through the default StringToUUIDConverter, except that input is the binary data put in a string :
Caused by: java.lang.IllegalArgumentException: Invalid UUID string: E�ڬ��N��A�%�i at java.base/java.util.UUID.fromString1(UUID.java:280) ~[na:na] at java.base/java.util.UUID.fromString(UUID.java:258) ~[na:na] at org.springframework.core.convert.support.StringToUUIDConverter.convert(StringToUUIDConverter.java:37) ~[spring-core-5.3.22.jar:5.3.22] at org.springframework.core.convert.support.StringToUUIDConverter.convert(StringToUUIDConverter.java:32) ~[spring-core-5.3.22.jar:5.3.22]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant