Skip to content

fix(orm): create sql.NullInt16 column as smallint, sql.NullInt32 as integer #2018

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

Open
wants to merge 1 commit into
base: v10
Choose a base branch
from

Conversation

lightsgoout
Copy link

Currently, sql.NullInt16 and sql.NullInt32 are created as JSONB columns. Fix that.

…nteger

Currently, sql.NullInt16 and sql.NullInt32 are created as JSONB columns.
This fixes that.
@elliotcourant
Copy link
Collaborator

I'll want to play with this a bit before merging but if you want to fix it in the mean time; you can add the type:"smallint" or type:"integer" go tag to those fields on your struct and that should correct the issue in the mean time.

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