Skip to content

Commit

Permalink
fix: handle strings in get_path
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Dec 15, 2023
1 parent ac980a2 commit 5e0f3c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/data_layer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ defmodule AshPostgres.DataLayer do
def can?(_, {:aggregate_relationship, _}), do: true

def can?(_, :timeout), do: true
def can?(_, :expr_error), do: true
def can?(_, {:filter_expr, _}), do: true
def can?(_, :nested_expressions), do: true
def can?(_, {:query_aggregate, _}), do: true
Expand Down
2 changes: 1 addition & 1 deletion lib/expr.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ defmodule AshPostgres.Expr do
end

defp split_at_paths(type, constraints, [next | rest], [first_acc | rest_acc])
when is_atom(next) do
when is_atom(next) or is_binary(next) do
bracket_or_dot =
if type && Ash.Type.composite?(type, constraints) do
:dot
Expand Down

0 comments on commit 5e0f3c4

Please sign in to comment.