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

equal: fix bug confusing zero and unset oneof values #51

Merged
merged 2 commits into from
Aug 16, 2022

Conversation

misberner
Copy link
Contributor

Change the code generation to compare the actual types of oneof wrapper fields and ensure they are equal, rather than looking at the (potentially zero) values of the fields under the oneof (which could be either explicitly set or unset).

Fixes #50 .

Copy link
Member

@vmg vmg left a comment

Choose a reason for hiding this comment

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

🙇

@vmg vmg merged commit 495c11b into planetscale:main Aug 16, 2022
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.

equal: code doesn't distinguish between oneof fields when zero-valued
2 participants