diff --git a/statement_test.go b/statement_test.go index 6c5050c3..43f423ee 100644 --- a/statement_test.go +++ b/statement_test.go @@ -35,7 +35,8 @@ func TestPrepareQueryPositional(t *testing.T) { row := stmt.QueryRow(1, 2) require.NoError(t, err) - row.Scan(&foo, &bar) + err = row.Scan(&foo, &bar) + require.NoError(t, err) require.Equal(t, 1, foo) require.Equal(t, 2, bar) }