Skip to content

internal/dinosql: Fix incorrect enum names #223

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

Merged
merged 1 commit into from
Dec 29, 2019
Merged

Conversation

kyleconroy
Copy link
Collaborator

Enums of type enum_type with values like foo-bar should be named
EnumTypeFooBar, but were being generated as EnumTypeFoobar.

The regex pattern I was using to remove unsupported characters was
accidentally stripping out underscores, the character used to split the
string.

Fixes #222

Enums of type enum_type with values like foo-bar should be named
EnumTypeFooBar, but were being generated as EnumTypeFoobar.

The regex pattern I was using to remove unsupported characters was
accidentally stripping out underscores, the character used to split the
string.
@kyleconroy kyleconroy merged commit 6a4dcec into master Dec 29, 2019
@kyleconroy kyleconroy deleted the fix-enum-names branch December 29, 2019 19:02
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.

Enum name changes
1 participant