diff --git a/go.mod b/go.mod index 694ab239..d9f1ab7d 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,7 @@ require ( github.com/tidwall/assert v0.1.0 github.com/tidwall/btree v1.5.0 github.com/tidwall/buntdb v1.2.9 - github.com/tidwall/expr v0.8.3 + github.com/tidwall/expr v0.9.0 github.com/tidwall/geojson v1.4.3 github.com/tidwall/gjson v1.14.3 github.com/tidwall/hashmap v1.6.1 diff --git a/go.sum b/go.sum index 137adf03..c0ba63c6 100644 --- a/go.sum +++ b/go.sum @@ -356,8 +356,8 @@ github.com/tidwall/buntdb v1.2.9 h1:XVz684P7X6HCTrdr385yDZWB1zt/n20ZNG3M1iGyFm4= github.com/tidwall/buntdb v1.2.9/go.mod h1:IwyGSvvDg6hnKSIhtdZ0AqhCZGH8ukdtCAzaP8fI1X4= github.com/tidwall/cities v0.1.0 h1:CVNkmMf7NEC9Bvokf5GoSsArHCKRMTgLuubRTHnH0mE= github.com/tidwall/cities v0.1.0/go.mod h1:lV/HDp2gCcRcHJWqgt6Di54GiDrTZwh1aG2ZUPNbqa4= -github.com/tidwall/expr v0.8.3 h1:hLaz3DmuXsat+LAO904UxjD1WHrHEbRYZgzzzcn7JB4= -github.com/tidwall/expr v0.8.3/go.mod h1:GnVpaS2R9wWV9Ft2u5TPDypJ+iQNxhAt9ISTUaUTlto= +github.com/tidwall/expr v0.9.0 h1:Cxn7XhoYs8Pry1CrB+9+TcaF1xSpGOAY66L30Vo599E= +github.com/tidwall/expr v0.9.0/go.mod h1:GnVpaS2R9wWV9Ft2u5TPDypJ+iQNxhAt9ISTUaUTlto= github.com/tidwall/geoindex v1.4.4/go.mod h1:rvVVNEFfkJVWGUdEfU8QaoOg/9zFX0h9ofWzA60mz1I= github.com/tidwall/geoindex v1.7.0 h1:jtk41sfgwIt8MEDyC3xyKSj75iXXf6rjReJGDNPtR5o= github.com/tidwall/geoindex v1.7.0/go.mod h1:rvVVNEFfkJVWGUdEfU8QaoOg/9zFX0h9ofWzA60mz1I= diff --git a/internal/server/expr.go b/internal/server/expr.go index 8b7ba456..dc1e75f3 100644 --- a/internal/server/expr.go +++ b/internal/server/expr.go @@ -141,6 +141,7 @@ func newExprPool(s *Server) *exprPool { func (p *exprPool) Get(o *object.Object) *expr.Context { ctx := p.pool.Get().(*expr.Context) ctx.UserData = o + ctx.NoCase = true return ctx }