From ac5d463e852b27fcc3ed1b6372cab27b6b7167ff Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Tue, 17 Oct 2017 19:05:38 -0500 Subject: [PATCH] PostgreSQL 10 coerces unknown types to text This is no longer an error. See PostgreSQL commit 1e7c4bb00. --- query_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/query_test.go b/query_test.go index fd29cc24..02aaeff0 100644 --- a/query_test.go +++ b/query_test.go @@ -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"},