Skip to content

Commit

Permalink
Change contextsimple to use namespacing by default closes araddon#226
Browse files Browse the repository at this point in the history
  • Loading branch information
araddon committed Oct 10, 2018
1 parent d481b2a commit 2d94250
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion datasource/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func NewContextSimpleNative(data map[string]interface{}) *ContextSimple {
for k, v := range data {
vals[k] = value.NewValue(v)
}
return &ContextSimple{Data: vals, ts: time.Now(), cursor: 0}
return &ContextSimple{Data: vals, ts: time.Now(), cursor: 0, namespacing: true}
}
func NewContextMap(data map[string]interface{}, namespacing bool) *ContextSimple {
vals := make(map[string]value.Value)
Expand Down
1 change: 1 addition & 0 deletions examples/expressions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func main() {
`EXISTS int5`,
`!exists(user_id)`,
`mt.event0 > now()`, // step into child of maps
`mt.event0 < now()`, // step into child of maps
`["portland"] LIKE "*land"`,
`email contains "bob"`,
`email NOT contains "bob"`,
Expand Down

0 comments on commit 2d94250

Please sign in to comment.