common: fix shadowed error in SQLSearcher.Query()

This commit is contained in:
Lars Lehtonen 2020-02-18 11:21:32 -08:00
parent 080a8fd615
commit 548a8bb39f
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ func (s *SQLSearcher) Query(q string, zones []int) (ids []int, err error) {
acc := qgen.NewAcc()
stmt := acc.RawPrepare("SELECT `topics`.`tid` FROM `topics` INNER JOIN `replies` ON `topics`.`tid` = `replies`.`tid` WHERE (MATCH(`topics`.`title`) AGAINST (? IN NATURAL LANGUAGE MODE) OR MATCH(`topics`.`content`) AGAINST (? IN NATURAL LANGUAGE MODE) OR MATCH(`replies`.`content`) AGAINST (? IN NATURAL LANGUAGE MODE)) AND `topics`.`parentID` IN(" + zList + ");")
err := acc.FirstError()
err = acc.FirstError()
if err != nil {
return nil, err
}