summaryrefslogtreecommitdiff
path: root/vendor/github.com/uptrace/bun/model_scan.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-10-24 13:14:37 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-24 13:14:37 +0200
commit8b7c3507fe0c8f6e921ee2de2c170ef93eeb7275 (patch)
treee79e3f5a59fb8942de79955bd26bf665be0acce8 /vendor/github.com/uptrace/bun/model_scan.go
parentdocs typo fix (#290) (diff)
downloadgotosocial-8b7c3507fe0c8f6e921ee2de2c170ef93eeb7275.tar.xz
upstep bun to v1.0.14 (#291)
Diffstat (limited to 'vendor/github.com/uptrace/bun/model_scan.go')
-rw-r--r--vendor/github.com/uptrace/bun/model_scan.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/github.com/uptrace/bun/model_scan.go b/vendor/github.com/uptrace/bun/model_scan.go
index 2ac22fbb0..48149c4b6 100644
--- a/vendor/github.com/uptrace/bun/model_scan.go
+++ b/vendor/github.com/uptrace/bun/model_scan.go
@@ -4,6 +4,8 @@ import (
"context"
"database/sql"
"reflect"
+
+ "github.com/uptrace/bun/schema"
)
type scanModel struct {
@@ -49,6 +51,6 @@ func (m *scanModel) Scan(src interface{}) error {
dest := reflect.ValueOf(m.dest[m.scanIndex])
m.scanIndex++
- scanner := m.db.dialect.Scanner(dest.Type())
+ scanner := schema.Scanner(dest.Type())
return scanner(dest, src)
}