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
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 2 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
This bit me as well. In order to work around it, I kept track of the nested depth of my transactions and uses a different copy of the function. If you do a switch statement, you can get different pointers for different nested depths. Something like:
Description
gorm/finisher_api.go
Line 522 in 6d64e31
In this line, savepoint name is generated from the pointer to the callback passed to the gorm.Transaction function.
If you ever reuse the callback, or the closure happens to be allocated at the same address, the transaction will silently fail.
Please allow to pass the savepoint name, or at least add some randomness there.
The text was updated successfully, but these errors were encountered: