修复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 {
|
} 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 "[><]":
|
||||||
|
Loading…
Reference in New Issue
Block a user