Skip to content

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 requested a review from mirromutth January 20, 2024 05:59
@jchrys jchrys marked this pull request as ready for review January 20, 2024 05:59
Copy link
Collaborator

@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
@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