From d140282f0875054f693012df35813b5a7a2a9d47 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sun, 19 Jun 2016 16:47:10 +1000 Subject: [PATCH] Add pointer reference to database query results --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 88a0625..aa3a0a9 100644 --- a/main.go +++ b/main.go @@ -82,7 +82,7 @@ func save(raw []byte) []string { query, err := db.Query("select id, hash, data, delkey from pastebin") for query.Next() { var id, hash, paste, delkey string - err := query.Scan(&id, hash, paste, delkey) + err := query.Scan(&id, &hash, &paste, &delkey) check(err) if hash == sha { return []string{id, hash, paste, delkey}