修正依赖问题
This commit is contained in:
6
vendor/github.com/jackc/pgx/v5/values.go
generated
vendored
6
vendor/github.com/jackc/pgx/v5/values.go
generated
vendored
@@ -55,7 +55,11 @@ func encodeCopyValue(m *pgtype.Map, buf []byte, oid uint32, arg any) ([]byte, er
|
||||
func tryScanStringCopyValueThenEncode(m *pgtype.Map, buf []byte, oid uint32, arg any) ([]byte, error) {
|
||||
s, ok := arg.(string)
|
||||
if !ok {
|
||||
return nil, errors.New("not a string")
|
||||
textBuf, err := m.Encode(oid, TextFormatCode, arg, nil)
|
||||
if err != nil {
|
||||
return nil, errors.New("not a string and cannot be encoded as text")
|
||||
}
|
||||
s = string(textBuf)
|
||||
}
|
||||
|
||||
var v any
|
||||
|
||||
Reference in New Issue
Block a user