Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* Fix composite type loading when `record_send` is duplicated
* Fix encoding of domains over composite types
* Enforce integer bounds in type encoders
* Decode the `void` type on CockroachDB (`voidsend`/`voidout`)

## v0.22.3 (2026-07-09)

Expand Down
4 changes: 3 additions & 1 deletion lib/postgrex/extensions/void_binary.ex
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
defmodule Postgrex.Extensions.VoidBinary do
@moduledoc false
import Postgrex.BinaryUtils, warn: false
use Postgrex.BinaryExtension, send: "void_send"
# CockroachDB names void's send/output procs without underscores
# (voidsend / voidout), so match its spelling in addition to Postgres'.
use Postgrex.BinaryExtension, send: "void_send", send: "voidsend"

def encode(_) do
quote location: :keep do
Expand Down
4 changes: 3 additions & 1 deletion lib/postgrex/extensions/void_text.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ defmodule Postgrex.Extensions.VoidText do

def init(_), do: nil

def matching(_), do: [output: "void_out"]
# CockroachDB names void's send/output procs without underscores
# (voidsend / voidout), so match its spelling in addition to Postgres'.
def matching(_), do: [output: "void_out", output: "voidout"]

def format(_), do: :text

Expand Down
Loading