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

Remove forced string conversions for Tuple #1465

Merged
merged 2 commits into from
Jan 10, 2025
Merged

Remove forced string conversions for Tuple #1465

merged 2 commits into from
Jan 10, 2025

Conversation

SpencerTorres
Copy link
Member

closes #1446

Summary

Tuple scanning was forcing string type conversions using fmt.Sprint. This removes that logic to defer to other conversion methods, with a clear conversion error if they fail.

See #1446 (comment) for more details.

Checklist

Delete items not relevant to your PR:

  • Unit and integration tests covering the common scenarios were added

@SpencerTorres SpencerTorres requested a review from jkaflik January 6, 2025 17:24
tests/issues/1446_test.go Outdated Show resolved Hide resolved
tests/issues/1446_test.go Outdated Show resolved Hide resolved
@SpencerTorres
Copy link
Member Author

Updated! Thanks for the notes, I'll keep them in mind for future PRs.

@jkaflik jkaflik self-requested a review January 9, 2025 09:51
@SpencerTorres SpencerTorres merged commit d792ffc into main Jan 10, 2025
12 checks passed
@SpencerTorres SpencerTorres deleted the issue_1446 branch January 10, 2025 17:01
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.

ScanStruct with a Nullable tuple value results in pointer value as text
2 participants