From 2a0d84a86b1576db2a23e5747131b26f87ad991c Mon Sep 17 00:00:00 2001 From: hoteas Date: Sun, 3 Dec 2017 19:54:46 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/db.go b/db.go index fecf39e..ee3ef6e 100644 --- a/db.go +++ b/db.go @@ -558,6 +558,8 @@ func (this *HoTimeDB) where(data Map) (string, []interface{}) { } } + + } else { //fmt.Println(v) where += " " + ObjToStr(v) @@ -611,7 +613,7 @@ func (this *HoTimeDB) varCond(k string, v interface{}) (string, []interface{}) { where += "`" + k + "`>=? " res = append(res, v) case "[<=]": - k = strings.Replace(k, "[<]", "", -1) + k = strings.Replace(k, "[<=]", "", -1) where += "`" + k + "`<=? " res = append(res, v) case "[><]":