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

Allow flag emitPointersForNull to all drivers #2590

Conversation

loicbefve
Copy link

Here is a proposition to fix the issue #2589 simply allow to use pointers for all drivers.
If this is not possible, I'm curious to understand why :)

@loicbefve loicbefve marked this pull request as draft August 9, 2023 06:51
@loicbefve loicbefve force-pushed the proposition_allow_emit_pointers_for_null_to_all_drivers branch from c5afd69 to a6641b1 Compare August 9, 2023 20:55
@loicbefve loicbefve marked this pull request as ready for review August 9, 2023 20:56
Copy link
Collaborator

@kyleconroy kyleconroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, if only it were this simple!

Each database driver handles types different. The https://github.com/go-sql-driver/mysql and https://github.com/lib/pq drivers do not support scanning null values into pointers.

@kyleconroy kyleconroy closed this Sep 6, 2023
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