Skip to content

Fix LoadTypes error handling#2549

Open
jaltavilla wants to merge 1 commit into
jackc:masterfrom
jaltavilla:load-types
Open

Fix LoadTypes error handling#2549
jaltavilla wants to merge 1 commit into
jackc:masterfrom
jaltavilla:load-types

Conversation

@jaltavilla
Copy link
Copy Markdown

@jaltavilla jaltavilla commented May 5, 2026

LoadTypes was missing a rows.Err() check at the end. Fixed by replacing manual loop with ForEachRow.

This fixes one of the issues in #2544

@jackc
Copy link
Copy Markdown
Owner

jackc commented May 9, 2026

Can we just add the error check rather than changing the loop type?

@jaltavilla
Copy link
Copy Markdown
Author

If that's how you would prefer it to be fixed, I can make that change.

It seems like using the helper that was created to remove the need for manual looping is safer. It would have prevented this bug as well as prevents future changes from introducing similar ones. Is there a downside to it?

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