From ccfff83d1a2c066e88ccaf90accb5b81d2095341 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Tue, 11 Apr 2017 20:38:18 -0500 Subject: [PATCH] Use circle in simple protocol test line is not supported PG 9.3 and below. --- query_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/query_test.go b/query_test.go index 66660ba1..c1ca480a 100644 --- a/query_test.go +++ b/query_test.go @@ -1225,11 +1225,11 @@ func TestConnSimpleProtocol(t *testing.T) { // Test high-level type { - expected := pgtype.Line{A: 1, B: 2, C: 1.5, Status: pgtype.Present} + expected := pgtype.Circle{P: pgtype.Vec2{1, 2}, R: 1.5, Status: pgtype.Present} actual := expected err := conn.QueryRowEx( context.Background(), - "select $1::line", + "select $1::circle", &pgx.QueryExOptions{SimpleProtocol: true}, &expected, ).Scan(&actual)