summaryrefslogtreecommitdiff
path: root/vendor/github.com/uptrace/bun/dialect/pgdialect/append.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/uptrace/bun/dialect/pgdialect/append.go')
-rw-r--r--vendor/github.com/uptrace/bun/dialect/pgdialect/append.go26
1 files changed, 13 insertions, 13 deletions
diff --git a/vendor/github.com/uptrace/bun/dialect/pgdialect/append.go b/vendor/github.com/uptrace/bun/dialect/pgdialect/append.go
index c95fa86e7..18a1f9baf 100644
--- a/vendor/github.com/uptrace/bun/dialect/pgdialect/append.go
+++ b/vendor/github.com/uptrace/bun/dialect/pgdialect/append.go
@@ -11,22 +11,22 @@ import (
)
var (
- driverValuerType = reflect.TypeOf((*driver.Valuer)(nil)).Elem()
+ driverValuerType = reflect.TypeFor[driver.Valuer]()
- stringType = reflect.TypeOf((*string)(nil)).Elem()
- sliceStringType = reflect.TypeOf([]string(nil))
+ stringType = reflect.TypeFor[string]()
+ sliceStringType = reflect.TypeFor[[]string]()
- intType = reflect.TypeOf((*int)(nil)).Elem()
- sliceIntType = reflect.TypeOf([]int(nil))
+ intType = reflect.TypeFor[int]()
+ sliceIntType = reflect.TypeFor[[]int]()
- int64Type = reflect.TypeOf((*int64)(nil)).Elem()
- sliceInt64Type = reflect.TypeOf([]int64(nil))
+ int64Type = reflect.TypeFor[int64]()
+ sliceInt64Type = reflect.TypeFor[[]int64]()
- float64Type = reflect.TypeOf((*float64)(nil)).Elem()
- sliceFloat64Type = reflect.TypeOf([]float64(nil))
+ float64Type = reflect.TypeFor[float64]()
+ sliceFloat64Type = reflect.TypeFor[[]float64]()
- timeType = reflect.TypeOf((*time.Time)(nil)).Elem()
- sliceTimeType = reflect.TypeOf([]time.Time(nil))
+ timeType = reflect.TypeFor[time.Time]()
+ sliceTimeType = reflect.TypeFor[[]time.Time]()
)
func appendTime(buf []byte, tm time.Time) []byte {
@@ -67,9 +67,9 @@ func appendMapStringString(b []byte, m map[string]string) []byte {
b = append(b, '\'')
for key, value := range m {
- b = arrayAppendString(b, key)
+ b = appendStringElem(b, key)
b = append(b, '=', '>')
- b = arrayAppendString(b, value)
+ b = appendStringElem(b, value)
b = append(b, ',')
}
if len(m) > 0 {