We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The pool.end callback/promise should resolve after the last pool.query resolves but instead it always resolves just before the last query:
pool.query(query).then(() => console.log('done')) pool.query(query).then(() => console.log('done')) pool.query(query).then(() => console.log('done')) pool.end().then(() => console.log('end'))
result:
done done end done
it needs to resolve after to signal that all query callbacks have run
another example of this occurring is in PR #2149 (comment)
I have not looked at solution again yet but maybe can sometime coming up, or anyone else feel free to fix
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The pool.end callback/promise should resolve after the last pool.query resolves but instead it always resolves just before the last query:
result:
it needs to resolve after to signal that all query callbacks have run
another example of this occurring is in PR #2149 (comment)
I have not looked at solution again yet but maybe can sometime coming up, or anyone else feel free to fix
The text was updated successfully, but these errors were encountered: