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 "[><]":