Skip to content

Commit

Permalink
PostgreSQL 10 coerces unknown types to text
Browse files Browse the repository at this point in the history
This is no longer an error. See PostgreSQL commit 1e7c4bb00.
  • Loading branch information
jackc committed Oct 18, 2017
1 parent 63f58fd commit ac5d463
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit ac5d463

Please sign in to comment.