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

Fix UUID being read/written incorrectly #24

Merged
merged 1 commit into from
Jan 4, 2019
Merged

Fix UUID being read/written incorrectly #24

merged 1 commit into from
Jan 4, 2019

Conversation

AelitaStyles
Copy link
Contributor

It appears the order of the UUID is being read/written incorrectly. A UUID created with uuid.New() creates an element with the bytes:

[175 95 101 190 208 84 73 41 180 30 81 75 208 199 210 227]

However the order written to the database is:

[41 73 84 208 190 101 95 175 227 210 199 208 75 81 30 180]

It seems like bytes [:7] and [8:] are flipped. I've injected a function that flips them into the correct order. I have confirmed that the UUID produced by uuid.New() matches the UUID returned via the SQLLine tool bundled with Ignite.

@amsokol amsokol merged commit 9561946 into amsokol:master Jan 4, 2019
@amsokol
Copy link
Owner

amsokol commented Jan 4, 2019

@AelitaStyles

Thanks for your help.
I have released v0.12.2

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

Successfully merging this pull request may close these issues.

2 participants