Skip to content

Conversation

dgryski
Copy link

@dgryski dgryski commented Mar 8, 2016

A number of small tweaks for sqlutils.

Only the defer Close() commit is an actual bug fix. The extra error checks are "nice to have" and reduce errors later in Orchestrator. The rest are style fixes.

/cc @rbastic @sjmudd

dgryski added 6 commits March 8, 2016 11:15
The unconditional Close() will cause a nil-pointer deference if err !=
nil, since rows will be nil if there was an error.
gofmt -w -r 'errors.New(fmt.Sprintf(a,b)) -> fmt.Errorf(a,b)' sqlutils.go
@SchumacherFM
Copy link

https://github.com/outbrain/golib/blob/master/sqlutils%2Fsqlutils.go#L74

IMHO: a check for .Valid is missing: cell.Valid

@dgryski
Copy link
Author

dgryski commented Apr 12, 2016

ping

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