Fix bug with cursor filters

This commit is contained in:
Vikram Rangnekar 2020-02-20 22:53:29 +05:30
parent c33e93ab37
commit aed4170e8e

View File

@ -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