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
sql.Stmt.Close does not return errors from driver.Stmt.Close
What steps will reproduce the problem?
Call sql.Stmt.Close with a driver that returns an error from driver.Stmt.Close(). See
http://play.golang.org/p/NxOcz1bT_-
What is the expected output?
The error from driver.Stmt.Close().
What do you see instead?
No error at all.
Actual use case?
1. I'm working on bulk imports with Postgres COPY FROM statement and I'm reading the
server responses in a separate goroutine (so the stmt.Exec() is asynchonous and will not
return errors immediately).
2. The error handling goroutine is closed when driver.Stmt.Close() is called and the
function returns any pending errors that the server sent back.
3. Calling sql.Stmt.Close() will not return any errors.
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
Mac OS X 10.7.5
Which version are you using? (run 'go version')
go version devel +de159d1f10be Fri Nov 01 12:53:31 2013 +1100 darwin/amd64
The text was updated successfully, but these errors were encountered:
All statements created by the user are now wrapped in a driverStmt that has a sticky error.
As far as I understand the stated issue this is resolved. Please open a new issue if I'm mistaken.
The text was updated successfully, but these errors were encountered: