Fix incorrect query
This commit is contained in:
parent
8bcc435c50
commit
d4a0d05dcc
2
main.go
2
main.go
|
@ -79,7 +79,7 @@ func save(raw []byte) []string {
|
||||||
check(err)
|
check(err)
|
||||||
|
|
||||||
sha := hash(p)
|
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() {
|
for query.Next() {
|
||||||
var id, hash, paste, delkey string
|
var id, hash, paste, delkey string
|
||||||
err := query.Scan(&id, hash, paste, delkey)
|
err := query.Scan(&id, hash, paste, delkey)
|
||||||
|
|
Loading…
Reference in New Issue