This commit is contained in:
hoteas 2019-07-16 10:15:00 +00:00
parent 03194f0f8e
commit c301928815

6
db.go
View File

@ -623,6 +623,12 @@ func (this *HoTimeDB) varCond(k string, v interface{}) (string, []interface{}) {
case "[#]":
k = strings.Replace(k, "[#]", "", -1)
where += " " + k + "=" + ObjToStr(v)
case "[#!]":
k = strings.Replace(k, "[#!]", "", -1)
where += " " + k + "!=" + ObjToStr(v)
case "[!#]":
k = strings.Replace(k, "[!#]", "", -1)
where += " " + k + "!=" + ObjToStr(v)
case "[~]":
k = strings.Replace(k, "[~]", "", -1)
where += "`" + k + "` LIKE ? "