Skip to content

Conversation

julienschmidt
Copy link
Member

This helps with #142
The database/sql package only retries if it encounters an ErrBadConn.
With errInvalidConn it returns immediately

This helps with #142
The database/sql package only retries if it encounters an ErrBadConn.
With errInvalidConn it returns immediately
@arnehormann
Copy link
Member

LGTM. Maybe we could cut it down a little with %v instead of %s and the method call for error, but only if you want to. Let's land this.

@julienschmidt
Copy link
Member Author

There is enough time to clean up the printf verbs after the v1.1 release

julienschmidt added a commit that referenced this pull request Nov 2, 2013
Return ErrBadConn for invalid connections
@julienschmidt julienschmidt merged commit 7b11574 into master Nov 2, 2013
@julienschmidt julienschmidt deleted the badconn branch November 2, 2013 10:09
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