summaryrefslogtreecommitdiff
path: root/vendor/github.com/jackc/pgx/v5/values.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/jackc/pgx/v5/values.go')
-rw-r--r--vendor/github.com/jackc/pgx/v5/values.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/vendor/github.com/jackc/pgx/v5/values.go b/vendor/github.com/jackc/pgx/v5/values.go
index cab717d0a..6e2ff3003 100644
--- a/vendor/github.com/jackc/pgx/v5/values.go
+++ b/vendor/github.com/jackc/pgx/v5/values.go
@@ -3,7 +3,6 @@ package pgx
import (
"errors"
- "github.com/jackc/pgx/v5/internal/anynil"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/jackc/pgx/v5/pgtype"
)
@@ -15,10 +14,6 @@ const (
)
func convertSimpleArgument(m *pgtype.Map, arg any) (any, error) {
- if anynil.Is(arg) {
- return nil, nil
- }
-
buf, err := m.Encode(0, TextFormatCode, arg, []byte{})
if err != nil {
return nil, err
@@ -30,10 +25,6 @@ func convertSimpleArgument(m *pgtype.Map, arg any) (any, error) {
}
func encodeCopyValue(m *pgtype.Map, buf []byte, oid uint32, arg any) ([]byte, error) {
- if anynil.Is(arg) {
- return pgio.AppendInt32(buf, -1), nil
- }
-
sp := len(buf)
buf = pgio.AppendInt32(buf, -1)
argBuf, err := m.Encode(oid, BinaryFormatCode, arg, buf)