fix
This commit is contained in:
parent
f0a22e1edf
commit
a12e7be611
4
item.go
4
item.go
@ -483,8 +483,8 @@ func getObjItemValDet(objID64 int64, quality string, days int) (float64, int64)
|
|||||||
if !item.Auction {
|
if !item.Auction {
|
||||||
return 0, 0
|
return 0, 0
|
||||||
}
|
}
|
||||||
row := db.QueryRow(`SELECT avg(omaa.price)
|
row := db.QueryRow(`SELECT COALESCE(avg(omaa.price), 0)
|
||||||
,count(*)
|
,COALESCE(count(*), 0)
|
||||||
FROM obj_msg_auction_announce omaa
|
FROM obj_msg_auction_announce omaa
|
||||||
WHERE omaa.item_id = ?
|
WHERE omaa.item_id = ?
|
||||||
AND omaa.quality = ?
|
AND omaa.quality = ?
|
||||||
|
Loading…
Reference in New Issue
Block a user