From a12e7be6114492cf0d59169ef1f91bec263ef431 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 8 Aug 2020 12:33:07 +0200 Subject: [PATCH] fix --- item.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/item.go b/item.go index 0af4f1f..0f9f619 100644 --- a/item.go +++ b/item.go @@ -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 = ?