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

fix: use correct receivers for custom database types #456

Merged
merged 1 commit into from
Mar 9, 2025

Conversation

agaffney
Copy link
Contributor

@agaffney agaffney commented Mar 9, 2025

We must use mixed pointer and non-pointer receivers for our custom database types to satisfy both the sql.Scanner and driver.Valuer interfaces. Tests have been added to ensure that our custom types are working as they are supposed to.

We must use mixed pointer and non-pointer receivers for our custom
database types to satisfy both the sql.Scanner and driver.Valuer
interfaces. Tests have been added to ensure that our custom types are
working as they are supposed to.

Signed-off-by: Aurora Gaffney <[email protected]>
@agaffney agaffney requested a review from a team as a code owner March 9, 2025 20:07
@agaffney agaffney merged commit c715be7 into main Mar 9, 2025
8 checks passed
@agaffney agaffney deleted the fix/db-types-receiver branch March 9, 2025 22:11
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.

3 participants