summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2023-09-18 11:38:56 +0100
committerLibravatar GitHub <noreply@github.com>2023-09-18 11:38:56 +0100
commit50b713e37a9641c25b5db5bee2d463c46d140c11 (patch)
tree0a12055e8bd278faf453b854459191f7d8b0ef2d /vendor
parent[feature] add paging to account follows, followers and follow requests endpoi... (diff)
downloadgotosocial-50b713e37a9641c25b5db5bee2d463c46d140c11.tar.xz
[chore] bump bun (and related libraries) versions to v1.1.16 (#2209)
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/uptrace/bun/CHANGELOG.md9
-rw-r--r--vendor/github.com/uptrace/bun/dialect/pgdialect/version.go2
-rw-r--r--vendor/github.com/uptrace/bun/dialect/sqlitedialect/version.go2
-rw-r--r--vendor/github.com/uptrace/bun/package.json2
-rw-r--r--vendor/github.com/uptrace/bun/schema/table.go37
-rw-r--r--vendor/github.com/uptrace/bun/version.go2
-rw-r--r--vendor/modules.txt8
7 files changed, 24 insertions, 38 deletions
diff --git a/vendor/github.com/uptrace/bun/CHANGELOG.md b/vendor/github.com/uptrace/bun/CHANGELOG.md
index f1d9577c3..8a95c45dc 100644
--- a/vendor/github.com/uptrace/bun/CHANGELOG.md
+++ b/vendor/github.com/uptrace/bun/CHANGELOG.md
@@ -1,3 +1,12 @@
+## [1.1.16](https://github.com/uptrace/bun/compare/v1.1.15...v1.1.16) (2023-09-16)
+
+
+### Reverts
+
+* Revert "fix: "model does not have column" error (#850)" ([387228e](https://github.com/uptrace/bun/commit/387228e85d22dfcf3659f4631dfa87106d7ef45f)), closes [#850](https://github.com/uptrace/bun/issues/850)
+
+
+
## [1.1.15](https://github.com/uptrace/bun/compare/v1.1.14...v1.1.15) (2023-09-10)
diff --git a/vendor/github.com/uptrace/bun/dialect/pgdialect/version.go b/vendor/github.com/uptrace/bun/dialect/pgdialect/version.go
index bea5c4d2d..9b3f8e228 100644
--- a/vendor/github.com/uptrace/bun/dialect/pgdialect/version.go
+++ b/vendor/github.com/uptrace/bun/dialect/pgdialect/version.go
@@ -2,5 +2,5 @@ package pgdialect
// Version is the current release version.
func Version() string {
- return "1.1.15"
+ return "1.1.16"
}
diff --git a/vendor/github.com/uptrace/bun/dialect/sqlitedialect/version.go b/vendor/github.com/uptrace/bun/dialect/sqlitedialect/version.go
index 4fbb58cee..8baf8191f 100644
--- a/vendor/github.com/uptrace/bun/dialect/sqlitedialect/version.go
+++ b/vendor/github.com/uptrace/bun/dialect/sqlitedialect/version.go
@@ -2,5 +2,5 @@ package sqlitedialect
// Version is the current release version.
func Version() string {
- return "1.1.15"
+ return "1.1.16"
}
diff --git a/vendor/github.com/uptrace/bun/package.json b/vendor/github.com/uptrace/bun/package.json
index b4c8d6ca6..ad384286b 100644
--- a/vendor/github.com/uptrace/bun/package.json
+++ b/vendor/github.com/uptrace/bun/package.json
@@ -1,6 +1,6 @@
{
"name": "gobun",
- "version": "1.1.15",
+ "version": "1.1.16",
"main": "index.js",
"repository": "git@github.com:uptrace/bun.git",
"author": "Vladimir Mihailenco <vladimir.webdev@gmail.com>",
diff --git a/vendor/github.com/uptrace/bun/schema/table.go b/vendor/github.com/uptrace/bun/schema/table.go
index cd0ff20b2..9eb7d1bfe 100644
--- a/vendor/github.com/uptrace/bun/schema/table.go
+++ b/vendor/github.com/uptrace/bun/schema/table.go
@@ -4,7 +4,6 @@ import (
"database/sql"
"fmt"
"reflect"
- "strconv"
"strings"
"sync"
"time"
@@ -807,38 +806,18 @@ func (t *Table) m2mRelation(field *Field) *Relation {
return rel
}
-type seenKey struct {
- Table reflect.Type
- FieldIndex string
-}
-
-type seenMap map[seenKey]struct{}
-
-func NewSeenKey(table reflect.Type, fieldIndex []int) (key seenKey) {
- key.Table = table
- for _, index := range fieldIndex {
- key.FieldIndex += strconv.Itoa(index) + "-"
- }
- return key
-}
-
-func (s seenMap) Clone() seenMap {
- t := make(seenMap)
- for k, v := range s {
- t[k] = v
+func (t *Table) inlineFields(field *Field, seen map[reflect.Type]struct{}) {
+ if seen == nil {
+ seen = map[reflect.Type]struct{}{t.Type: {}}
}
- return t
-}
-func (t *Table) inlineFields(field *Field, seen seenMap) {
- if seen == nil {
- seen = make(seenMap)
+ if _, ok := seen[field.IndirectType]; ok {
+ return
}
+ seen[field.IndirectType] = struct{}{}
joinTable := t.dialect.Tables().Ref(field.IndirectType)
for _, f := range joinTable.allFields {
- key := NewSeenKey(joinTable.Type, f.Index)
-
f = f.Clone()
f.GoName = field.GoName + "_" + f.GoName
f.Name = field.Name + "__" + f.Name
@@ -855,9 +834,7 @@ func (t *Table) inlineFields(field *Field, seen seenMap) {
continue
}
- if _, ok := seen[key]; !ok {
- seen = seen.Clone()
- seen[key] = struct{}{}
+ if _, ok := seen[f.IndirectType]; !ok {
t.inlineFields(f, seen)
}
}
diff --git a/vendor/github.com/uptrace/bun/version.go b/vendor/github.com/uptrace/bun/version.go
index 371014de7..641a29074 100644
--- a/vendor/github.com/uptrace/bun/version.go
+++ b/vendor/github.com/uptrace/bun/version.go
@@ -2,5 +2,5 @@ package bun
// Version is the current release version.
func Version() string {
- return "1.1.15"
+ return "1.1.16"
}
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 99c7b384f..3b4f81548 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -702,7 +702,7 @@ github.com/ugorji/go/codec
github.com/ulule/limiter/v3
github.com/ulule/limiter/v3/drivers/store/common
github.com/ulule/limiter/v3/drivers/store/memory
-# github.com/uptrace/bun v1.1.15
+# github.com/uptrace/bun v1.1.16
## explicit; go 1.19
github.com/uptrace/bun
github.com/uptrace/bun/dialect
@@ -714,13 +714,13 @@ github.com/uptrace/bun/internal/parser
github.com/uptrace/bun/internal/tagparser
github.com/uptrace/bun/migrate
github.com/uptrace/bun/schema
-# github.com/uptrace/bun/dialect/pgdialect v1.1.15
+# github.com/uptrace/bun/dialect/pgdialect v1.1.16
## explicit; go 1.19
github.com/uptrace/bun/dialect/pgdialect
-# github.com/uptrace/bun/dialect/sqlitedialect v1.1.15
+# github.com/uptrace/bun/dialect/sqlitedialect v1.1.16
## explicit; go 1.19
github.com/uptrace/bun/dialect/sqlitedialect
-# github.com/uptrace/bun/extra/bunotel v1.1.15
+# github.com/uptrace/bun/extra/bunotel v1.1.16
## explicit; go 1.19
github.com/uptrace/bun/extra/bunotel
# github.com/uptrace/opentelemetry-go-extra/otelsql v0.2.2