2
0

Remove rune to text conversion

Because rune is an alias for int32 this caused some very surprising
results. e.g. inserting int32(65) into text would insert "A" instead of
"65".
This commit is contained in:
Jack Christensen
2022-05-12 17:13:49 -05:00
parent c1495aace0
commit 989a4835de
3 changed files with 0 additions and 40 deletions
-5
View File
@@ -33,11 +33,6 @@ func TestTextCodec(t *testing.T) {
{"foo", new(string), isExpectedEq("foo")},
{someFmtStringer{}, new(string), isExpectedEq("some fmt.Stringer")},
})
// rune requires known OID because otherwise it is considered an int32.
pgxtest.RunValueRoundTripTests(context.Background(), t, defaultConnTestRunner, pgxtest.KnownOIDQueryExecModes, pgTypeName, []pgxtest.ValueRoundTripTest{
{rune('R'), new(rune), isExpectedEq(rune('R'))},
})
}
}