修复bug

This commit is contained in:
hoteas 2017-12-03 19:54:46 +00:00
parent 3b664ac178
commit 2a0d84a86b

4
db.go
View File

@ -558,6 +558,8 @@ func (this *HoTimeDB) where(data Map) (string, []interface{}) {
} }
} }
} else { } else {
//fmt.Println(v) //fmt.Println(v)
where += " " + ObjToStr(v) where += " " + ObjToStr(v)
@ -611,7 +613,7 @@ func (this *HoTimeDB) varCond(k string, v interface{}) (string, []interface{}) {
where += "`" + k + "`>=? " where += "`" + k + "`>=? "
res = append(res, v) res = append(res, v)
case "[<=]": case "[<=]":
k = strings.Replace(k, "[<]", "", -1) k = strings.Replace(k, "[<=]", "", -1)
where += "`" + k + "`<=? " where += "`" + k + "`<=? "
res = append(res, v) res = append(res, v)
case "[><]": case "[><]":