Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type overrides not respecting domains #594

Open
pnispel opened this issue Nov 21, 2024 · 0 comments
Open

Type overrides not respecting domains #594

pnispel opened this issue Nov 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pnispel
Copy link

pnispel commented Nov 21, 2024

Describe the bug
I make a domain like:

CREATE DOMAIN public.uint128 AS numeric(39,0)
	CONSTRAINT uint128_check CHECK ((VALUE >= (0)::numeric));

if I dont include that in my typesOverrides config pgtyped will complain about the missing type:

Error: Postgres type 'uint128' is not supported by mapping

but if thats added: "uint128": "BigInt", it wont error, but the types generated will still be strings.

Expected behavior
typeOverrides config is respected and output types for uint128 are bigint

@pnispel pnispel added the bug Something isn't working label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant