From 05c3600bd88690e8e72bc88f0ed96471e3c8874f 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}