summaryrefslogtreecommitdiff
path: root/vendor/github.com/uptrace/bun/schema/tables.go
diff options
context:
space:
mode:
authorLibravatar kim (grufwub) <grufwub@gmail.com>2021-09-08 21:13:54 +0100
committerLibravatar kim (grufwub) <grufwub@gmail.com>2021-09-08 21:13:54 +0100
commit6a2d0d9508392425392738743fa4dd5b5d93bdb4 (patch)
tree2c076235c197acbb9080745fc79a4b41aaa5452e /vendor/github.com/uptrace/bun/schema/tables.go
parentupdate sqlite library -> v1.13.0 (diff)
parentMerge pull request #195 from NyaaaWhatsUpDoc/update/bun-library (diff)
downloadgotosocial-6a2d0d9508392425392738743fa4dd5b5d93bdb4.tar.xz
Merge remote-tracking branch 'upstream/main' into update/sqlite-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.go1
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))
}