fix: {:ok, _} -> {:known, _} when evaluating operators

This commit is contained in:
Zach Daniel 2022-07-20 15:44:03 -04:00
parent 8036c268d6
commit 7b9861dc2c

View file

@ -65,8 +65,8 @@ defmodule Ash.Query.Operator.Basic do
end end
end end
defp do_evaluate(_, nil, _), do: {:ok, nil} defp do_evaluate(_, nil, _), do: {:known, nil}
defp do_evaluate(_, _, nil), do: {:ok, nil} defp do_evaluate(_, _, nil), do: {:known, nil}
defp do_evaluate(:<>, left, right) do defp do_evaluate(:<>, left, right) do
{:known, to_string(left) <> to_string(right)} {:known, to_string(left) <> to_string(right)}