From af5e7ec2b6909c8c77ea67711f6bf6220f7efa4f Mon Sep 17 00:00:00 2001 From: Nut He <18328704+hetao92@users.noreply.github.com> Date: Mon, 13 Dec 2021 13:40:29 +0800 Subject: [PATCH] fix: fix return value of different null type mod: remove log --- service/dao/dao.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/service/dao/dao.go b/service/dao/dao.go index 6a7e7f4..238f423 100644 --- a/service/dao/dao.go +++ b/service/dao/dao.go @@ -52,6 +52,14 @@ func getBasicValue(valWarp *nebula.ValueWrapper) (common.Any, error) { return "BAD_DATA", err case nebulaType.NullType_BAD_TYPE: return "BAD_TYPE", err + case nebulaType.NullType_OUT_OF_RANGE: + return "OUT_OF_RANGE", err + case nebulaType.NullType_DIV_BY_ZERO: + return "DIV_BY_ZERO", err + case nebulaType.NullType_UNKNOWN_PROP: + return "UNKNOWN_PROP", err + case nebulaType.NullType_ERR_OVERFLOW: + return "ERR_OVERFLOW", err } return "NULL", err } else if valType == "bool" {