mirror of https://github.com/jackc/pgx.git
parent
76c0b9ee90
commit
ccfff83d1a
|
@ -1225,11 +1225,11 @@ func TestConnSimpleProtocol(t *testing.T) {
|
||||||
// Test high-level type
|
// 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
|
actual := expected
|
||||||
err := conn.QueryRowEx(
|
err := conn.QueryRowEx(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
"select $1::line",
|
"select $1::circle",
|
||||||
&pgx.QueryExOptions{SimpleProtocol: true},
|
&pgx.QueryExOptions{SimpleProtocol: true},
|
||||||
&expected,
|
&expected,
|
||||||
).Scan(&actual)
|
).Scan(&actual)
|
||||||
|
|
Loading…
Reference in New Issue