From 6c5ebe0213ce599a919b554c5aeb65dd047e8c54 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 25 May 2019 21:55:04 -0500 Subject: [PATCH] Provide type for extended protocol query --- pool/common_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool/common_test.go b/pool/common_test.go index 5f99c9c3..fd53f1e6 100644 --- a/pool/common_test.go +++ b/pool/common_test.go @@ -56,7 +56,7 @@ type queryRower interface { func testQueryRow(t *testing.T, db queryRower) { var what, who string - err := db.QueryRow(context.Background(), "select 'hello', $1", "world").Scan(&what, &who) + err := db.QueryRow(context.Background(), "select 'hello', $1::text", "world").Scan(&what, &who) assert.NoError(t, err) assert.Equal(t, "hello", what) assert.Equal(t, "world", who)