Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return ErrBadConn for invalid connections #151

Merged
merged 1 commit into from Nov 2, 2013
Merged

Return ErrBadConn for invalid connections #151

merged 1 commit into from Nov 2, 2013

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.

None yet

2 participants