From 75155c5a31fc06db64fed1b6f9e3f55e74337bae Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Sun, 19 Jun 2016 16:45:52 +1000 Subject: [PATCH] Fix incorrect query --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 5259d9c..88a0625 100644 --- a/main.go +++ b/main.go @@ -79,7 +79,7 @@ func save(raw []byte) []string { check(err) sha := hash(p) - query, err := db.Query("select id, hash, paste, delkey from pastebin") + 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)