2
0

Use Map.Encode path for simple protocol

This commit is contained in:
Jack Christensen
2022-03-05 21:40:49 -06:00
parent c4b08378f2
commit fe21cc7486
3 changed files with 14 additions and 123 deletions
+2 -2
View File
@@ -1418,7 +1418,7 @@ func TestConnSimpleProtocol(t *testing.T) {
var actual bool
err := conn.QueryRow(
context.Background(),
"select $1",
"select $1::boolean",
pgx.QueryExecModeSimpleProtocol,
expected,
).Scan(&actual)
@@ -1733,7 +1733,7 @@ func TestConnSimpleProtocol(t *testing.T) {
var actualString string
err := conn.QueryRow(
context.Background(),
"select $1::int8, $2::float8, $3, $4::bytea, $5::text",
"select $1::int8, $2::float8, $3::boolean, $4::bytea, $5::text",
pgx.QueryExecModeSimpleProtocol,
expectedInt64, expectedFloat64, expectedBool, expectedBytes, expectedString,
).Scan(&actualInt64, &actualFloat64, &actualBool, &actualBytes, &actualString)