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

sqlboiler-psql: remove check for namespace on pg_type #1263

Closed
wants to merge 1 commit into from

Conversation

them0ntem
Copy link

Check on namespace can cause column_type to be null when type is in different namespace than column

Fix #1262

@stephenafamo
Copy link
Collaborator

This will cause problems if there are types with the same name in multiple schemas.
Although it fixes #1262, it can cause potential issues for many others.

At the moment, SQLBoiler is not cross-schema aware. It would be better to actually make SQLBoiler cross-schema aware than patching smaller parts like this which could then cause undefined behaviours for others.


If you are working on an entirely new project, I would suggest considering Bob which is heavily inspired by SQLBoiler and is cross-schema aware.

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.

Generation fails when column_type has different namespace/schema than column
2 participants