Skip to content

Commit

Permalink
Update xsql BuildTagValues
Browse files Browse the repository at this point in the history
  • Loading branch information
onanying committed Mar 19, 2024
1 parent 6b46a82 commit 6939ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xsql/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func BuildTagValues(tagKey string, ptr interface{}, pairs ...interface{}) (map[s
if structValue.Field(j).Addr().Interface() == pairs[i] {
fieldName = structType.Field(j).Tag.Get(tagKey)
if fieldName == "" {
return nil, fmt.Errorf("xsql: no matching struct field tag found for pointer at index %d", i)
return nil, fmt.Errorf("xsql: no struct field tag found for pointer at index %d", i)
}
found = true
break
Expand Down

0 comments on commit 6939ac8

Please sign in to comment.