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 BooleanCodec #211

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Fix BooleanCodec #211

merged 1 commit into from
Jan 22, 2024

Conversation

jchrys
Copy link
Collaborator

@jchrys jchrys commented Jan 20, 2024

Motivation:
Address the current issue with BooleanCodec encoding booleans as binary, which can lead to unintended results.

Modification:
Update BooleanCodec to encode booleans as integers (1 for true, 0 for false).

Result:
Aligns with https://dev.mysql.com/doc/refman/8.0/en/boolean-literals.html
Ensures accurate boolean encoding.
Fixes #209.

Motivation:
Address the current issue with BooleanCodec encoding booleans as binary, which can lead to unintended results.

Modification:
Update BooleanCodec to encode booleans as integers (1 for true, 0 for false).

Result:
Ensures accurate boolean encoding.
Fixes #209.
@jchrys jchrys added the bug Something isn't working label Jan 20, 2024
@jchrys jchrys marked this pull request as ready for review January 20, 2024 05:59
Copy link
Contributor

@mirromutth mirromutth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jchrys jchrys merged commit 201109e into trunk Jan 22, 2024
12 checks passed
@jchrys jchrys deleted the 1x-fix-boolean-encoding branch January 22, 2024 11:45
@jchrys jchrys added this to the 1.1.0/0.10.0 milestone Jan 22, 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

Successfully merging this pull request may close these issues.

[bug]Boolean bind variable is echoed back as ByteBuffer
2 participants