Skip to content

Commit cc60245

Browse files
oops
1 parent 895a50b commit cc60245

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/ecto/adapters/postgres/connection.ex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,10 +1761,8 @@ if Code.ensure_loaded?(Postgrex) do
17611761
do: [?\s, options]
17621762

17631763
defp column_type({:array, type}, opts) do
1764-
case column_type(type, opts) do
1765-
[type, opts] -> [type, "[]", opts]
1766-
[type, "[]", opts] -> [[type, "[]"], "[]", opts]
1767-
end
1764+
[type, opts] = column_type(type, opts)
1765+
[[type, "[]"], opts]
17681766
end
17691767

17701768
defp column_type(type, opts) when type in ~w(time utc_datetime naive_datetime)a do

0 commit comments

Comments
 (0)