Skip to content

Commit

Permalink
Use db.Query instead of db.Exec for select statement in test
Browse files Browse the repository at this point in the history
  • Loading branch information
lggruspe committed Aug 16, 2022
1 parent 3456a78 commit 6acc037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlite3_opt_math_functions_test.go
Expand Up @@ -21,7 +21,7 @@ func TestMathFunctions(t *testing.T) {
}

for _, query := range queries {
if _, err := db.Exec(query); err != nil {
if _, err := db.Query(query); err != nil {
t.Fatal("Failed to call math function:", err)
}
}
Expand Down

0 comments on commit 6acc037

Please sign in to comment.