Skip to content

Commit

Permalink
fix returned lists
Browse files Browse the repository at this point in the history
  • Loading branch information
whossname committed Sep 15, 2019
1 parent 0c71fcc commit 66970dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mssqlex/type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ defmodule Mssqlex.Type do
{:sql_integer, [:null]}
end

# def encode(values, v) when is_list(values), do: Enum.map(values, &encode(&1, v))
def encode(values, v) when is_list(values),
do: Enum.map(values, &encode(&1, v))

def encode(value, _) do
raise %Mssqlex.Error{
Expand Down

0 comments on commit 66970dd

Please sign in to comment.