We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sql.Register can't currently be called from multiple goroutines:
sql.Register
https://github.com/golang/go/blob/f58a5cb9e2/src/database/sql/sql.go#L28-L39
It should do something along the lines of gob.RegisterName and synchronize access on the global drivers registry:
gob.RegisterName
drivers
go/src/encoding/gob/type.go
Lines 823 to 824 in f58a5cb
The text was updated successfully, but these errors were encountered:
Or we just document it.
Sorry, something went wrong.
sgtm
Actually it was easier to just add a mutex than document it.
CL https://golang.org/cl/11682 mentions this issue.
fc2eee8
No branches or pull requests
sql.Register
can't currently be called from multiple goroutines:https://github.com/golang/go/blob/f58a5cb9e2/src/database/sql/sql.go#L28-L39
It should do something along the lines of
gob.RegisterName
and synchronize access on the globaldrivers
registry:go/src/encoding/gob/type.go
Lines 823 to 824 in f58a5cb
The text was updated successfully, but these errors were encountered: