Skip to content

Commit

Permalink
MB-41231. cache compiled like when it is static
Browse files Browse the repository at this point in the history
Change-Id: I8bcd40a6db83916f37308979628dac154a0ab40c
Reviewed-on: http://review.couchbase.org/c/query/+/133336
Reviewed-by: Bingjie Miao <bingjie.miao@couchbase.com>
Tested-by: Sitaram Vemulapalli <sitaram.vemulapalli@couchbase.com>
Reviewed-on: http://review.couchbase.org/c/query/+/135274
Well-Formed: Build Bot <build@couchbase.com>
  • Loading branch information
sitaramv committed Sep 4, 2020
1 parent 01ccaa4 commit da0372a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions expression/comp_like.go
Expand Up @@ -82,6 +82,9 @@ func (this *Like) Apply(context Context, first, second value.Value) (value.Value
if err != nil {
return nil, err
}
if this.operands[1].Static() != nil {
this.re = re
}
}

return value.NewValue(re.MatchString(f)), nil
Expand Down

0 comments on commit da0372a

Please sign in to comment.