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

Process keyword fields correctly in FromRow macro #200

Merged
merged 1 commit into from
Mar 31, 2020

Conversation

sidred
Copy link

@sidred sidred commented Mar 30, 2020

This PR fixes the the incorrect handling of keywords fields of a struct in the FromRow macro.

Currently a struct with a field like 'r#type' will try to read values from a column with the exact same name with r# prefix. With this change this field will now map to a database column with the correct name 'type' without the r# prefix.

This PR fixes the the incorrect handling of keywords fields of a struct in the FromRow macro.
Currently a struct with a field like 'r#type' will try to read values from a column with the exact same name with r# prefix. With this change this field will now map to a database column with the correct name 'type' without the r# prefix.
@mehcode
Copy link
Member

mehcode commented Mar 31, 2020

Neat. Thanks for the fix. 👍

@mehcode mehcode merged commit 9be0401 into launchbadge:master Mar 31, 2020
@sidred sidred deleted the fromrow-keyword-fix branch March 31, 2020 00:28
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