Archived
1
0

catch error

This commit is contained in:
Jeff Becker 2017-09-12 10:16:55 -04:00
parent b8e862bbb6
commit d97f1332d6
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -1625,11 +1625,17 @@ func (self *PostgresDatabase) GetLastAndFirstForGroup(group string) (last, first
func (self *PostgresDatabase) GetMessageIDForNNTPID(group string, id int64) (msgid string, err error) {
err = self.conn.QueryRow(self.stmt[GetMessageIDForNNTPID], group, id).Scan(&msgid)
if err == sql.ErrNoRows {
err = nil
}
return
}
func (self *PostgresDatabase) GetNNTPIDForMessageID(group, msgid string) (id int64, err error) {
err = self.conn.QueryRow(self.stmt[GetNNTPIDForMessageID], group, msgid).Scan(&id)
if err == sql.ErrNoRows {
err = nil
}
return
}