need to scan into pointer
This commit is contained in:
parent
3baff9e64e
commit
e8cf29056e
|
@ -74,7 +74,7 @@ func delinquent(userid int64, rcpt string, msg []byte) bool {
|
||||||
row := stmtDeliquentCheck.QueryRow(userid, rcpt)
|
row := stmtDeliquentCheck.QueryRow(userid, rcpt)
|
||||||
var dooverid int64
|
var dooverid int64
|
||||||
var data []byte
|
var data []byte
|
||||||
err := row.Scan(&dooverid, data)
|
err := row.Scan(&dooverid, &data)
|
||||||
if err == sql.ErrNoRows {
|
if err == sql.ErrNoRows {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue