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
How should one rollback a transaction? It looks like it'll roll back if the callback function crashes, but I wasn't sure what the recommendation was otherwise.
Is running pgo:query("rollback") appropriate?
Thanks,
Louis
The text was updated successfully, but these errors were encountered:
Hey, sorry. Running pgo:query("rollback") is appropriate if you are in a pgo:transaction since then it'll use the same connection. If you ran begin with pgo:query you'd end up getting a different connection and it would not work.
I finally exported pgo:query/4 so you can pass a conn to query#95
Hello!
How should one rollback a transaction? It looks like it'll roll back if the callback function crashes, but I wasn't sure what the recommendation was otherwise.
Is running
pgo:query("rollback")
appropriate?Thanks,
Louis
The text was updated successfully, but these errors were encountered: