feature model fix (#296)
* add raw stirng quote for sql field * remove unused code
This commit is contained in:
@@ -61,9 +61,9 @@ func FieldNames(in interface{}) []string {
|
||||
// gets us a StructField
|
||||
fi := typ.Field(i)
|
||||
if tagv := fi.Tag.Get(dbTag); tagv != "" {
|
||||
out = append(out, tagv)
|
||||
out = append(out, fmt.Sprintf("`%v`", tagv))
|
||||
} else {
|
||||
out = append(out, fi.Name)
|
||||
out = append(out, fmt.Sprintf("`%v`", fi.Name))
|
||||
}
|
||||
}
|
||||
return out
|
||||
|
||||
Reference in New Issue
Block a user