diff --git a/qcode/qcode.go b/qcode/qcode.go index a5d9fa6..0cee210 100644 --- a/qcode/qcode.go +++ b/qcode/qcode.go @@ -824,7 +824,7 @@ func addFilter(sel *Select, fil *Exp) { if sel.Where != nil { ow := sel.Where - if sel.Where.Op != OpAnd { + if sel.Where.Op != OpAnd || !sel.Where.doFree { sel.Where = expPool.Get().(*Exp) sel.Where.Reset() sel.Where.Op = OpAnd