This commit is contained in:
shoopea 2020-08-08 12:33:07 +02:00
parent f0a22e1edf
commit a12e7be611

View File

@ -483,8 +483,8 @@ func getObjItemValDet(objID64 int64, quality string, days int) (float64, int64)
if !item.Auction {
return 0, 0
}
row := db.QueryRow(`SELECT avg(omaa.price)
,count(*)
row := db.QueryRow(`SELECT COALESCE(avg(omaa.price), 0)
,COALESCE(count(*), 0)
FROM obj_msg_auction_announce omaa
WHERE omaa.item_id = ?
AND omaa.quality = ?