Skip to content

Commit

Permalink
Use map_intersperse (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradhanks authored Jan 10, 2024
1 parent ec8ea63 commit 33b8f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecto/adapters/postgres/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ if Code.ensure_loaded?(Postgrex) do
defp default_type(list, {:array, inner} = type) when is_list(list) do
[
"ARRAY[",
Enum.map(list, &default_type(&1, inner)) |> Enum.intersperse(?,),
Enum.map_intersperse(list, ?,, &default_type(&1, inner)),
"]::",
ecto_to_db(type)
]
Expand Down

0 comments on commit 33b8f34

Please sign in to comment.