2
0

Remove proposed v5 type system before Codec

This commit is contained in:
Jack Christensen
2022-01-04 20:04:48 -06:00
parent 1a189db041
commit ac80fa5b33
40 changed files with 12 additions and 1355 deletions
+1 -3
View File
@@ -252,9 +252,7 @@ func encodePreparedStatementArgument(ci *pgtype.ConnInfo, buf []byte, oid uint32
// argument to a prepared statement. It defaults to TextFormatCode if no
// determination can be made.
func chooseParameterFormatCode(ci *pgtype.ConnInfo, oid uint32, arg interface{}) int16 {
switch arg := arg.(type) {
case pgtype.FormatSupport:
return arg.PreferredFormat()
switch arg.(type) {
case pgtype.BinaryEncoder:
return BinaryFormatCode
case string, *string, pgtype.TextEncoder: