2
0

PostgreSQL 10 coerces unknown types to text

This is no longer an error. See PostgreSQL commit 1e7c4bb00.
This commit is contained in:
Jack Christensen
2017-10-17 19:05:38 -05:00
parent 63f58fd32e
commit ac5d463e85
-1
View File
@@ -815,7 +815,6 @@ func TestQueryRowErrors(t *testing.T) {
scanArgs []interface{}
err string
}{
{"select $1", []interface{}{"Jack"}, []interface{}{&actual.i16}, "could not determine data type of parameter $1 (SQLSTATE 42P18)"},
{"select $1::badtype", []interface{}{"Jack"}, []interface{}{&actual.i16}, `type "badtype" does not exist`},
{"SYNTAX ERROR", []interface{}{}, []interface{}{&actual.i16}, "SQLSTATE 42601"},
{"select $1::text", []interface{}{"Jack"}, []interface{}{&actual.i16}, "cannot decode"},