2
0

Use wrapper to treat fmt.String as pgtype.TextValuer

This commit is contained in:
Jack Christensen
2022-01-20 20:22:53 -06:00
parent 06f4e47750
commit b10eb89fe4
5 changed files with 27 additions and 4 deletions
-2
View File
@@ -30,8 +30,6 @@ func (EnumCodec) PlanEncode(ci *ConnInfo, oid uint32, format int16, value interf
return encodePlanTextCodecByteSlice{}
case rune:
return encodePlanTextCodecRune{}
case fmt.Stringer:
return encodePlanTextCodecStringer{}
case TextValuer:
return encodePlanTextCodecTextValuer{}
}