PostgreSQL 10 coerces unknown types to text
This is no longer an error. See PostgreSQL commit 1e7c4bb00.
This commit is contained in:
@@ -815,7 +815,6 @@ func TestQueryRowErrors(t *testing.T) {
|
|||||||
scanArgs []interface{}
|
scanArgs []interface{}
|
||||||
err string
|
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`},
|
{"select $1::badtype", []interface{}{"Jack"}, []interface{}{&actual.i16}, `type "badtype" does not exist`},
|
||||||
{"SYNTAX ERROR", []interface{}{}, []interface{}{&actual.i16}, "SQLSTATE 42601"},
|
{"SYNTAX ERROR", []interface{}{}, []interface{}{&actual.i16}, "SQLSTATE 42601"},
|
||||||
{"select $1::text", []interface{}{"Jack"}, []interface{}{&actual.i16}, "cannot decode"},
|
{"select $1::text", []interface{}{"Jack"}, []interface{}{&actual.i16}, "cannot decode"},
|
||||||
|
|||||||
Reference in New Issue
Block a user