Fix incorrect query

This commit is contained in:
Eliot Whalan 2016-06-19 16:45:52 +10:00
parent 8bcc435c50
commit d4a0d05dcc
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
1 changed files with 1 additions and 1 deletions

View File

@ -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)