Compare commits

...

1 Commits

Author SHA1 Message Date
aed4170e8e Fix bug with cursor filters 2020-02-20 22:53:29 +05:30

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