Skip to content

Conversation

bvwells
Copy link
Contributor

@bvwells bvwells commented Sep 17, 2020

Signed-off-by: Ben Wells [email protected]

What this PR does:

This PR checks for errors when reading postgress rows. The rows.Next() method may encounter an error when reading the next row. In this case a false value is returned and it is important to call rows.Err() to see whether an error was encountered.

Which issue(s) this PR fixes:
N/A

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@pracucci pracucci merged commit e783280 into cortexproject:master Sep 18, 2020
@bvwells
Copy link
Contributor Author

bvwells commented Sep 18, 2020

Thanks @pstibrany and @pracucci for the review and merge!

@bvwells bvwells deleted the postgress branch September 18, 2020 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants