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
Every transaction must terminate with either COMMIT or ROLLBACK.
Failure to do so leaves the transaction open. And since you always rely on the connection pool, you will end up executing unrelated queries inside your transaction context.
When using pg-promise, the ROLLBACK is executed automatically when the transaction errors, but all of the callback examples provided here do not do that, and need to be corrected.
The text was updated successfully, but these errors were encountered:
Wardormeur
added a commit
to Wardormeur/cp-users-service
that referenced
this issue
Jun 29, 2017
Every transaction must terminate with either
COMMIT
orROLLBACK.
Failure to do so leaves the transaction open. And since you always rely on the connection pool, you will end up executing unrelated queries inside your transaction context.
When using
pg-promise
, theROLLBACK
is executed automatically when the transaction errors, but all of the callback examples provided here do not do that, and need to be corrected.The text was updated successfully, but these errors were encountered: