This commit is contained in:
parent
03194f0f8e
commit
c301928815
6
db.go
6
db.go
@ -623,6 +623,12 @@ func (this *HoTimeDB) varCond(k string, v interface{}) (string, []interface{}) {
|
|||||||
case "[#]":
|
case "[#]":
|
||||||
k = strings.Replace(k, "[#]", "", -1)
|
k = strings.Replace(k, "[#]", "", -1)
|
||||||
where += " " + k + "=" + ObjToStr(v)
|
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 "[~]":
|
case "[~]":
|
||||||
k = strings.Replace(k, "[~]", "", -1)
|
k = strings.Replace(k, "[~]", "", -1)
|
||||||
where += "`" + k + "` LIKE ? "
|
where += "`" + k + "` LIKE ? "
|
||||||
|
Loading…
Reference in New Issue
Block a user