diff --git a/lib/ecto/adapters/myxql/connection.ex b/lib/ecto/adapters/myxql/connection.ex index cc951c50..59a09d1f 100644 --- a/lib/ecto/adapters/myxql/connection.ex +++ b/lib/ecto/adapters/myxql/connection.ex @@ -881,7 +881,7 @@ if Code.ensure_loaded?(MyXQL) do end defp values_list(types, num_rows, query) do - rows = Enum.to_list(1..num_rows) + rows = :lists.seq(1, num_rows, 1) [ "VALUES ", diff --git a/lib/ecto/adapters/postgres/connection.ex b/lib/ecto/adapters/postgres/connection.ex index 579275e3..75dbccf0 100644 --- a/lib/ecto/adapters/postgres/connection.ex +++ b/lib/ecto/adapters/postgres/connection.ex @@ -1172,7 +1172,7 @@ if Code.ensure_loaded?(Postgrex) do end defp values_list(types, idx, num_rows) do - rows = Enum.to_list(1..num_rows) + rows = :lists.seq(1, num_rows, 1) [ "VALUES ", diff --git a/lib/ecto/adapters/tds/connection.ex b/lib/ecto/adapters/tds/connection.ex index 23235201..9eeeb0b4 100644 --- a/lib/ecto/adapters/tds/connection.ex +++ b/lib/ecto/adapters/tds/connection.ex @@ -981,7 +981,7 @@ if Code.ensure_loaded?(Tds) do end defp values_list(types, idx, num_rows) do - rows = Enum.to_list(1..num_rows) + rows = :lists.seq(1, num_rows, 1) [ "VALUES ",