Skip to content

Commit

Permalink
fix: get m2m table's structKey with driver.Valuer
Browse files Browse the repository at this point in the history
Close #1100
  • Loading branch information
j2gg0s committed Jan 5, 2025
1 parent e60ae2a commit f107314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model_table_m2m.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (m *m2mModel) scanM2MColumn(column string, src interface{}) error {
if err := field.Scan(dest, src); err != nil {
return err
}
m.structKey = append(m.structKey, dest.Interface())
m.structKey = append(m.structKey, indirectFieldValue(dest))
break
}
}
Expand Down

0 comments on commit f107314

Please sign in to comment.