From 6acc037a25e97b16d74f3172cca4c4597e706458 Mon Sep 17 00:00:00 2001 From: Levi Gruspe Date: Tue, 16 Aug 2022 23:03:01 +0300 Subject: [PATCH] Use db.Query instead of db.Exec for select statement in test --- sqlite3_opt_math_functions_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3_opt_math_functions_test.go b/sqlite3_opt_math_functions_test.go index ef5d30ff..6d9e8ef1 100644 --- a/sqlite3_opt_math_functions_test.go +++ b/sqlite3_opt_math_functions_test.go @@ -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) } }