Add pointer reference to database query results

This commit is contained in:
Eliot Whalan 2016-06-19 16:47:10 +10:00
parent 75155c5a31
commit 05c3600bd8
1 changed files with 1 additions and 1 deletions

View File

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