Provide type for extended protocol query

pull/586/head
Jack Christensen 2019-05-25 21:55:04 -05:00
parent d40d76c181
commit 6c5ebe0213
1 changed files with 1 additions and 1 deletions

View File

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