Skip to content

Commit

Permalink
fix: updated function guard
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Jun 18, 2024
1 parent 9de440d commit d760d7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/adbc_column.ex
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,8 @@ defmodule Adbc.Column do
"""
@spec fixed_size_binary([iodata() | nil], non_neg_integer(), Keyword.t()) :: %Adbc.Column{}
def fixed_size_binary(data, nbytes, opts \\ []) when is_list(data) and is_list(opts) do
def fixed_size_binary(data, nbytes, opts \\ [])
when is_list(data) and is_integer(nbytes) and is_list(opts) do
column({:fixed_size_binary, nbytes}, data, opts)
end

Expand Down

0 comments on commit d760d7f

Please sign in to comment.