Skip to content

Check error if rows.Next returns false.#365

Merged
nelsam merged 2 commits intogo-gorp:masterfrom
jsha:check-err
Feb 25, 2018
Merged

Check error if rows.Next returns false.#365
nelsam merged 2 commits intogo-gorp:masterfrom
jsha:check-err

Conversation

@jsha
Copy link
Copy Markdown
Contributor

@jsha jsha commented Jan 18, 2018

Per https://golang.org/pkg/database/sql/#Rows.Next,

returns true on success, or false if there is no next result row or an error
happened while preparing it. Err should be consulted to distinguish between
the two cases.

Fixes #364.

Per https://golang.org/pkg/database/sql/#Rows.Next,
> returns true on success, or false if there is no next result row or an error
> happened while preparing it. Err should be consulted to distinguish between
> the two cases.
@nelsam
Copy link
Copy Markdown
Member

nelsam commented Jan 18, 2018

The build failure looks to be unrelated; I'll do my best to find time to dig in to it in the next week.

@nelsam
Copy link
Copy Markdown
Member

nelsam commented Feb 24, 2018

I need to stop telling people I'm going to get to something in a timely manner.

Looking in to the build failure now.

@nelsam nelsam merged commit 2925510 into go-gorp:master Feb 25, 2018
@jsha jsha deleted the check-err branch February 27, 2018 02:01
@jsha
Copy link
Copy Markdown
Contributor Author

jsha commented Feb 27, 2018

Thanks for merging! Can you update gopkg.in/go-gorp/gorp.v2?

@nelsam
Copy link
Copy Markdown
Member

nelsam commented Feb 27, 2018

Created a new release. I really just need to add a pipeline configuration to jenkins (at least, until there's a public concourse that I can add gorp pipelines to) to automatically create new releases. I'm too forgetful to be doing this all manually.

@jsha
Copy link
Copy Markdown
Contributor Author

jsha commented Feb 27, 2018

Thanks!

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