From d7d7227ad8a28de5f684141103047c0325364f71 Mon Sep 17 00:00:00 2001 From: hoteas Date: Mon, 30 Jul 2018 18:22:50 +0000 Subject: [PATCH] --- db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.go b/db.go index 012831a..b44b883 100644 --- a/db.go +++ b/db.go @@ -632,7 +632,7 @@ func (this *HoTimeDB) varCond(k string, v interface{}) (string, []interface{}) { where += "`" + k + "` LIKE ? " v = "%" + ObjToStr(v) res = append(res, v) - case "[!~]"://右边任意 + case "[~!]"://右边任意 k = strings.Replace(k, "[~]", "", -1) where += "`" + k + "` LIKE ? " v = ObjToStr(v) +"%"