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
This change is causing breakage on tip:
golang/go#12798
I think it's a reasonable upstream change.
Looking at the commit that added the code that is failing on our side
the lack of error propagation is called out and is the reason we're now
failing.
72f8451
This change attempts to preserve old behavior while supporting the fact
that errors are now propagated properly by Stmt.Close().
Open to better ways to do this though.
The Stmt.Close() function in database/sql discards any error generated by the Close() function of the contained driverStmt. I think this error should be propagated.
https://github.com/golang/go/blob/master/src/database/sql/sql.go#L1579
This is preventing github.com/DATA-DOG/go-sqlmock/ExpectedPrepare.WillReturnCloseError from functioning:
DATA-DOG/go-sqlmock#25
The text was updated successfully, but these errors were encountered: