Skip to content

Fix bootstrap_query and reload_query specs to take the protocol state - #803

Merged
josevalim merged 1 commit into
elixir-ecto:masterfrom
lukaszsamson:fix-bootstrap-query-specs
Oct 19, 2026
Merged

josevalim merged 1 commit into
elixir-ecto:masterfrom
lukaszsamson:fix-bootstrap-query-specs

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

Found with SpecLint on elixir 1.20.4

lib/postgrex/types.ex:57: error: Postgrex.Types.bootstrap_query/2: no inferred clause accepts the arguments of this spec clause
    @spec bootstrap_query({pos_integer(), non_neg_integer(), non_neg_integer()}, state()) :: binary() | nil
    inferred: (term(), %{..., types: {term(), term()}}) -> dynamic(nil or binary())
lib/postgrex/types.ex:117: error: Postgrex.Types.reload_query/3: no inferred clause accepts the arguments of this spec clause
    @spec reload_query({pos_integer(), non_neg_integer(), non_neg_integer()}, [oid(), ...], state()) ::
  binary() | nil
    inferred: (term(), term(), %{..., types: {term(), term()}}) -> dynamic(nil or binary())

@josevalim
josevalim merged commit cb48119 into elixir-ecto:master Oct 19, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants