Skip to content

Fix handling of domain types - #637

Open
ml-mave wants to merge 1 commit into
adelsz:masterfrom
ml-mave:fix-domain-types
Open

ml-mave wants to merge 1 commit into
adelsz:masterfrom
ml-mave:fix-domain-types

Conversation

@ml-mave

@ml-mave ml-mave commented Jan 9, 2026

Copy link
Copy Markdown

Fixes #503, fixes #594

The problem is that when PostgreSQL is queried for query types, it "resolves" domain types, meaning it only returns the base type.

The fix is to check if the result column is a direct column reference, and if so, we just query the column type from the pg_attribute table.

This PR currently does not have tests unfortunately. We've confirmed this fix works in our fork, though.

@blahbleepew @antoineharel @pnispel If you have time to check whether this PR fixes your issue, that would be great.

@vercel

vercel Bot commented Jan 9, 2026

Copy link
Copy Markdown

@ml-mave is attempting to deploy a commit to the Adel Salakh's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Type overrides not respecting domains Domain overrides only partially working

1 participant