Fix bug with cursor filters

This commit is contained in:
Vikram Rangnekar 2020-02-20 22:53:29 +05:30
parent c33e93ab37
commit aed4170e8e
1 changed files with 1 additions and 1 deletions

View File

@ -824,7 +824,7 @@ func addFilter(sel *Select, fil *Exp) {
if sel.Where != nil { if sel.Where != nil {
ow := sel.Where ow := sel.Where
if sel.Where.Op != OpAnd { if sel.Where.Op != OpAnd || !sel.Where.doFree {
sel.Where = expPool.Get().(*Exp) sel.Where = expPool.Get().(*Exp)
sel.Where.Reset() sel.Where.Reset()
sel.Where.Op = OpAnd sel.Where.Op = OpAnd