You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I red previous issue #15502.
Though I understood why Open() func doesn't return error but I think interface of Open() func don't have to have return of error. it will mislead people who use this func.
If this func has interface of error, people would expect error. It makes people misleaded.
Why Open func doesn't return error?
Please answer these questions before submitting your issue. Thanks!
go version
)?1.6.2
go env
)?amd64/darwin
Even though mysql server doesn't start, nothing error occur when I connect server using Open func of sql package.
I expected connection error.
I changed code to handle error as below.
The text was updated successfully, but these errors were encountered: