good morning!!!!

Skip to content
Snippets Groups Projects
Commit 75de8735 authored by José Carlos Nieto's avatar José Carlos Nieto
Browse files

PostgreSQL: We don't need to use DELETE here.

parent 34a50688
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ func BenchmarkSQLPreparedAppendWithArgs(b *testing.B) {
driver := sess.Driver().(*sqlx.DB)
if _, err = driver.Exec(`DELETE FROM "artist"`); err != nil {
if _, err = driver.Exec(`TRUNCATE TABLE "artist"`); err != nil {
b.Fatal(err)
}
......@@ -190,7 +190,7 @@ func BenchmarkSQLPreparedAppendWithVariableArgs(b *testing.B) {
driver := sess.Driver().(*sqlx.DB)
if _, err = driver.Exec(`DELETE FROM "artist"`); err != nil {
if _, err = driver.Exec(`TRUNCATE TABLE "artist"`); err != nil {
b.Fatal(err)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment