forked from golang/hotime
修复bug
This commit is contained in:
parent
3b664ac178
commit
2a0d84a86b
4
db.go
4
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 "[><]":
|
||||
|
Loading…
Reference in New Issue
Block a user