If the context is canceled, the sql package will roll back the transaction.
The provided context is used until the transaction is committed or rolled back.
--
You received this message because you are subscribed to the Google Groups "golang-sql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-sql+...@googlegroups.com.
To post to this group, send email to golan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-sql/39493bf9-f0de-4daf-a19d-1834b1a76809%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The context provided to BeginTx controls the context.The context provided to ExecContext() or QueryContext are separate. However, if either ExecContext or QueryContext are running in a transaction, and the transaction context is cancelled, the The exec or query is also canceled.
--
You received this message because you are subscribed to the Google Groups "golang-sql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-sql+...@googlegroups.com.
To post to this group, send email to golan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-sql/26b5c581-887f-44f6-b388-81c1bff4079a%40googlegroups.com.