Use circle in simple protocol test

line is not supported PG 9.3 and below.
batch-wip
Jack Christensen 2017-04-11 20:38:18 -05:00
parent 76c0b9ee90
commit ccfff83d1a
1 changed files with 2 additions and 2 deletions

View File

@ -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)