diff options
author | 2021-09-08 20:55:13 +0100 | |
---|---|---|
committer | 2021-09-08 20:55:13 +0100 | |
commit | 151069cff48f34f2f837220a8cdba9377ff354aa (patch) | |
tree | 6c8dd9e0c5b36e3acb2011f0ef69ac689c30000c /vendor/github.com/uptrace/bun/schema/tables.go | |
parent | update oauth library --> v4.3.2-SSB (diff) | |
parent | Merge pull request #195 from NyaaaWhatsUpDoc/update/bun-library (diff) | |
download | gotosocial-151069cff48f34f2f837220a8cdba9377ff354aa.tar.xz |
Merge remote-tracking branch 'upstream/main' into update/oauth-library
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
Diffstat (limited to 'vendor/github.com/uptrace/bun/schema/tables.go')
-rw-r--r-- | vendor/github.com/uptrace/bun/schema/tables.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vendor/github.com/uptrace/bun/schema/tables.go b/vendor/github.com/uptrace/bun/schema/tables.go index d82d08f59..4be856b34 100644 --- a/vendor/github.com/uptrace/bun/schema/tables.go +++ b/vendor/github.com/uptrace/bun/schema/tables.go @@ -67,6 +67,7 @@ func (t *Tables) Ref(typ reflect.Type) *Table { } func (t *Tables) table(typ reflect.Type, allowInProgress bool) *Table { + typ = indirectType(typ) if typ.Kind() != reflect.Struct { panic(fmt.Errorf("got %s, wanted %s", typ.Kind(), reflect.Struct)) } |