Skip to content

Decode void type on CockroachDB - #791

Merged
josevalim merged 1 commit into
elixir-ecto:masterfrom
milmazz:crdb-void-type-matching
Aug 6, 2026
Merged

Decode void type on CockroachDB#791
josevalim merged 1 commit into
elixir-ecto:masterfrom
milmazz:crdb-void-type-matching

Conversation

@milmazz

@milmazz milmazz commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

CockroachDB names the void type's send/output procs without underscores (voidsend / voidout), so the built-in VoidBinary/VoidText extensions never bind and SELECTs returning void (e.g. pg_advisory_xact_lock/1) raise type "void" can not be handled.

Match CRDB's proc spelling in addition to Postgres' so void decodes on both engines. The wire format is identical; only the matching changes, and the Postgres path is unaffected.

CockroachDB names the void type's send/output procs without underscores (voidsend / voidout), so the built-in VoidBinary/VoidText extensions never bind and `SELECT`s returning void (e.g. pg_advisory_xact_lock/1) raise `type "void" can not be handled`.

Match CRDB's proc spelling in addition to Postgres' so void decodes on both engines. The wire format is identical; only the matching changes, and the Postgres path is unaffected.
@milmazz
milmazz marked this pull request as ready for review August 5, 2026 18:57
@josevalim
josevalim merged commit ed2f725 into elixir-ecto:master Aug 6, 2026
13 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

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