From 96d341aaab4529a3337b7d5e5cb247708ad3f291 Mon Sep 17 00:00:00 2001 From: hoteas Date: Tue, 21 Jun 2022 00:06:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=8F=8A=E6=97=B6=E9=97=B4bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/objtoobj.go | 2 +- db/hotimedb.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/objtoobj.go b/common/objtoobj.go index ee40907..756384c 100644 --- a/common/objtoobj.go +++ b/common/objtoobj.go @@ -156,7 +156,7 @@ func ObjToTime(obj interface{}, e ...*Error) *time.Time { } } - return &time.Time{} + return nil } func ObjToFloat64(obj interface{}, e ...*Error) float64 { diff --git a/db/hotimedb.go b/db/hotimedb.go index a9c1a02..46c76bd 100644 --- a/db/hotimedb.go +++ b/db/hotimedb.go @@ -341,7 +341,7 @@ func (that *HoTimeDB) Query(query string, args ...interface{}) []Map { } return that.Query(query, args...) } - return that.Query(query, args...) + return nil } return that.Row(resl) @@ -379,7 +379,7 @@ func (that *HoTimeDB) Exec(query string, args ...interface{}) (sql.Result, *Erro } return that.Exec(query, args...) } - return that.Exec(query, args...) + return resl, that.LastErr } return resl, that.LastErr