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
ok, btw, if the connection created from a pool, after the transaction is commited, should I call connection.release() to return this connection? or the commit method implicit the action of release?
If you call pool.getConnection(function (err, conn) {}), you must always call conn.release() exactly once on the conn; there are no exceptions :) This makes the API easy to understand when you should call it: always :)
See your doc https://github.com/felixge/node-mysql#transactions。
I'm wondering how can I catch the error of rollbacking.
Or can you promise there is no error anymore when rollbacking?
The text was updated successfully, but these errors were encountered: