Skip to content

Commit

Permalink
test: add error check
Browse files Browse the repository at this point in the history
  • Loading branch information
marcboeker committed Jun 6, 2024
1 parent ddb798c commit 23801de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion statement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 23801de

Please sign in to comment.