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

unmarshall varchar, text, blob, ascii cql types with zero data into ([]byte)(nil), (*[]byte)(*[nil]) #286

Open
illia-li opened this issue Oct 2, 2024 · 1 comment

Comments

@illia-li
Copy link

illia-li commented Oct 2, 2024

According to cql protocol - for all cql types value can be nil and zero.
Therefore all unmarshall functions for cql types should unmarshalls nil data into nil go value and zero data into zero go value.
But currently, for varchar, text, blob, ascii cql types zero data unmarshalls into ([]byte)(nil), (*[]byte)(*[nil])

@illia-li
Copy link
Author

illia-li commented Oct 2, 2024

This issue is also present in uuid, timeuuid cql types

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