mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
fix: broken types for in
operator
This commit is contained in:
parent
a01a529355
commit
3304807dfc
1 changed files with 9 additions and 1 deletions
|
@ -1139,7 +1139,7 @@ defmodule AshPostgres.DataLayer do
|
|||
end
|
||||
|
||||
defp simple_operator_expr(op, params, value, type, current_binding, attribute, false) do
|
||||
{params ++ [{value, Ash.Type.ecto_type(type)}],
|
||||
{params ++ [{value, op_type(type)}],
|
||||
{op, [],
|
||||
[
|
||||
{{:., [], [{:&, [], [current_binding]}, attribute]}, [], []},
|
||||
|
@ -1156,6 +1156,14 @@ defmodule AshPostgres.DataLayer do
|
|||
]}}
|
||||
end
|
||||
|
||||
defp op_type({:in, type}) do
|
||||
{:in, op_type(type)}
|
||||
end
|
||||
|
||||
defp op_type(type) do
|
||||
Ash.Type.ecto_type(type)
|
||||
end
|
||||
|
||||
defp tagged(value, type) do
|
||||
%Ecto.Query.Tagged{value: value, type: get_type(type)}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue