Skip to content

Add hack to fix output type for coalesce #1119

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

Merged
merged 2 commits into from
Aug 12, 2021
Merged

Conversation

kyleconroy
Copy link
Collaborator

@kyleconroy kyleconroy commented Aug 12, 2021

Add flag to skip table required check for joins when using COALESCE.

Obviously this is pretty gross hack. We really need to refactor how the type checking in sqlc works.

Fixes #1096

Add flag to skip table required check for joins when using COALESCE.
@kyleconroy kyleconroy merged commit 0dfe728 into main Aug 12, 2021
@kyleconroy kyleconroy deleted the kyle/coalesce-join-hack branch August 12, 2021 15:43
@kevinburke1
Copy link
Contributor

Thanks, Kyle!

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.

COALESCE returns a NullInt instead of an int in JOIN
2 participants