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

Bug: The models.ID.String() function is removing these characters ⟨⟩. #198

Open
2 tasks done
mahbubabbas opened this issue Dec 18, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@mahbubabbas
Copy link

Describe the bug

The models.ID.String() function appears to be removing these characters (⟨⟩), which causes discrepancies when working with IDs programmatically.

I would like to bring to your attention a concern regarding the use of the character pair ⟨⟩ in record IDs, particularly when IDs contain special characters. While these characters may serve a purpose, they are not easily typeable using a standard keyboard, especially on systems like ThinkPad laptops that lack a numeric keypad. This makes manual interaction with such IDs inconvenient.

Steps to reproduce

Create a record in SurrealDB with special characters in the ID.
Fetch the record using the Go SDK.
Observe that models.ID.String() strips out ⟨⟩ from the ID, making it inconsistent with the actual stored record ID.

Expected behaviour

Those special chars should be retained in the string format of the ID

SurrealDB version

Go SDK 0.3.2, windows 11

Contact Details

[email protected]

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mahbubabbas mahbubabbas added the bug Something isn't working label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant