From 1f25f511ccd881c81b6d3876924e00d86d3297db Mon Sep 17 00:00:00 2001 From: hoteas <等> Date: Tue, 14 Jun 2022 11:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0mysql=E6=96=AD=E7=BA=BF?= =?UTF-8?q?=E9=87=8D=E8=BF=9E=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/hotimedb.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/hotimedb.go b/db/hotimedb.go index b206f2a..a9c1a02 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 nil + return that.Query(query, args...) } return that.Row(resl) @@ -379,6 +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