diff options
Diffstat (limited to 'lib/evaluators/FOL.ml')
| -rw-r--r-- | lib/evaluators/FOL.ml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/evaluators/FOL.ml b/lib/evaluators/FOL.ml index 1064c74..60cc89f 100644 --- a/lib/evaluators/FOL.ml +++ b/lib/evaluators/FOL.ml @@ -171,8 +171,10 @@ let rec modes = | Where (plan, binding) -> ( let* modes = modes plan in match plan with - | Base relation when Option.is_some (index_for relation binding) -> - Ok (Concepts.Mode.given (bound binding) modes) + | Base relation -> ( + match index_for relation binding with + | Some (_, attribute) -> Ok (Concepts.Mode.given attribute modes) + | None -> Ok modes ) | _ -> Ok modes ) let project description relation = |
