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

Add support for nullable json fieds in MySQL. #3778

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

advait
Copy link

@advait advait commented Jan 7, 2025

Fixes #3373

I've noticed that we don't use pointer fields (e.g. *json.RawMessage) for generated models, instead preferring explicit fields like sql.NullTime. This PR uses a pointer field.

Working on fixing tests - will mark as ready once tests pass. Thank you!

@advait advait marked this pull request as ready for review January 7, 2025 19:52
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. 🔧 golang labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files. 🔧 golang
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NULL JSON field fails to Scan into json.RawMessage
1 participant