mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
bumps our uptrace/bun dependencies to v1.2.11 (#3895)
This commit is contained in:
10
vendor/github.com/uptrace/bun/schema/table.go
generated
vendored
10
vendor/github.com/uptrace/bun/schema/table.go
generated
vendored
@ -171,7 +171,7 @@ func (t *Table) processFields(typ reflect.Type) {
|
||||
if _, ok := ebdStructs[k]; !ok {
|
||||
ebdStructs[k] = &structField{
|
||||
Index: makeIndex(sf.Index, v.Index),
|
||||
Table: subtable,
|
||||
Table: v.Table,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -259,13 +259,13 @@ func (t *Table) processFields(typ reflect.Type) {
|
||||
}
|
||||
|
||||
for _, embfield := range embedded {
|
||||
subfield := embfield.subfield.Clone()
|
||||
|
||||
if ambiguousNames[subfield.Name] > 1 &&
|
||||
!(!subfield.Tag.IsZero() && ambiguousTags[subfield.Name] == 1) {
|
||||
if ambiguousNames[embfield.prefix+embfield.subfield.Name] > 1 &&
|
||||
!(!embfield.subfield.Tag.IsZero() && ambiguousTags[embfield.prefix+embfield.subfield.Name] == 1) {
|
||||
continue // ambiguous embedded field
|
||||
}
|
||||
|
||||
subfield := embfield.subfield.Clone()
|
||||
|
||||
subfield.Index = makeIndex(embfield.index, subfield.Index)
|
||||
if embfield.prefix != "" {
|
||||
subfield.Name = embfield.prefix + subfield.Name
|
||||
|
Reference in New Issue
Block a user