2
0

Better encode error message

This commit is contained in:
Jack Christensen
2022-07-09 21:26:38 -05:00
parent 731daea586
commit b662ab6767
2 changed files with 24 additions and 4 deletions
+1 -1
View File
@@ -984,7 +984,7 @@ func TestQueryRowErrors(t *testing.T) {
{"select $1::badtype", []any{"Jack"}, []any{&actual.i16}, `type "badtype" does not exist`},
{"SYNTAX ERROR", []any{}, []any{&actual.i16}, "SQLSTATE 42601"},
{"select $1::text", []any{"Jack"}, []any{&actual.i16}, "cannot scan OID 25 in text format into *int16"},
{"select $1::point", []any{int(705)}, []any{&actual.s}, "unable to encode 705 into format code 1 for OID 600"},
{"select $1::point", []any{int(705)}, []any{&actual.s}, "unable to encode 705 into binary format for point (OID 600)"},
}
for i, tt := range tests {