Skip to content

Commit

Permalink
improvement: use prettier SQL in Ash.calculate
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jan 15, 2025
1 parent 12f914d commit 6cf1b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/data_layer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,7 @@ defmodule AshPostgres.DataLayer do
|> Map.new(fn {dynamic, index} -> {index, dynamic} end)

query =
Ecto.Query.from(row in fragment("UNNEST(ARRAY[1])"), select: ^dynamics)
Ecto.Query.from(row in fragment("(VALUES(1))"), select: ^dynamics)
|> Map.put(:__ash_bindings__, query.__ash_bindings__)

repo =
Expand Down

0 comments on commit 6cf1b66

Please sign in to comment.