Transaction issue in my code #2597
Replies: 1 comment
-
Closing due to #2598. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have issues in above code
If an error returns from 'saveSpecialOrderV2' procedure, then we have to roll-back all changes, means 'saveAOrder' function inserted row must be roll-back and 'updateInventoryForNewOrder' update query also should be reverted. But when I run this code snippet it is not roll-backing. Is there any issue?
Also I am passing 'connection' to all functions, is it the right way. Will the functions uses same connection that we have begin transaction?
I have following code in Node.js with typescript
Beta Was this translation helpful? Give feedback.
All reactions