Skip to content

call NewMapperTagFunc's tagMapFunc before parsing name/options#214

Open
jlburkhead wants to merge 1 commit intojmoiron:masterfrom
jlburkhead:NewMapperTagFunc_fix
Open

call NewMapperTagFunc's tagMapFunc before parsing name/options#214
jlburkhead wants to merge 1 commit intojmoiron:masterfrom
jlburkhead:NewMapperTagFunc_fix

Conversation

@jlburkhead
Copy link
Copy Markdown

May be I don't understand how NewMapperTagFunc is supposed to work, but it seems like the tagMapFunc needs to be called before these lines so that name and options are set for the field. Even if my understanding of how the tagMapFunc works is off, the test needs to be fixed since any func (or nil) works as the third arg to NewMapperTagFunc in TestTagNameMapping.

@jlburkhead jlburkhead changed the title call NewMapperTagFunc's tagFunc before parsing name/options call NewMapperTagFunc's tagMapFunc before parsing name/options Mar 15, 2016
@robert-zaremba
Copy link
Copy Markdown

I think you are right. tag is used to make find a column name, and this should be done before the name is set.

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