-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Broken pool.query for 2-arity #872
New issue
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
Comments
The following test functions and calls Can you post the specific code you are using that does not work? |
It looks like there is a mistake here: https://github.com/felixge/node-mysql/blob/master/lib/Pool.js#L172 where if there is an error getting the connection from the pool it will not work. Is this what is happening to you? |
OK, I'll assume that's a yes... |
Please run a |
Yes it has! Thanks for your help. |
Thanks for verifying :) This fix will be published as 2.4.1 in just a little bit once Travis CI actually tests the change. |
OK, published as 2.4.1 now. |
Hi! I noticed that the following lines of code have been removed from the
pool.query
function between v2.3.2 and v2.4.0:As a result, in v2.4.0, when I attempt to call
pool.query
with only two parameters --- a sql query and a callback function, my code breaks.Was this an intentional change, in which case, I need to use explicit null values when calling the function, or is this something that you can fix? Thanks.
The text was updated successfully, but these errors were encountered: