diff options
| author | 2021-10-24 13:14:37 +0200 | |
|---|---|---|
| committer | 2021-10-24 13:14:37 +0200 | |
| commit | 8b7c3507fe0c8f6e921ee2de2c170ef93eeb7275 (patch) | |
| tree | e79e3f5a59fb8942de79955bd26bf665be0acce8 /vendor/github.com/uptrace/bun/model_scan.go | |
| parent | docs typo fix (#290) (diff) | |
| download | gotosocial-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.go | 4 |
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) } |
