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
In the transaction, I use a prepared statement with COPY IN query.
I have some function which runs ~5-10 sec and may return an error. If I receive error I need to rollback transaction.
According to database/sql doc prepared statement should be closed on transaction Commit or Rollback
In the transaction, I use a prepared statement with COPY IN query.
I have some function which runs ~5-10 sec and may return an error. If I receive error I need to rollback transaction.
According to database/sql doc prepared statement should be closed on transaction
Commit
orRollback
Test which describes the behavior below:
Go version:
go version go1.12.5 linux/amd64
lib/pq version
v1.2.0
The text was updated successfully, but these errors were encountered: