node-mysql2 icon indicating copy to clipboard operation
node-mysql2 copied to clipboard

connection.ping() resolves with error rather than rejecting

Open bbusschots-mu opened this issue 7 years ago • 2 comments

When using promises, the connection.ping() function behaves in a very confusing and counter-intuitive way — it resolves to an error when the ping fails. Would it not be much better to reject when the ping fails?

bbusschots-mu avatar Feb 22 '18 12:02 bbusschots-mu

sounds like a bug, will check, thanks!

sidorares avatar Feb 22 '18 12:02 sidorares

Just checking to see if this was ever resolved?

tfrancois avatar Jun 09 '22 05:06 tfrancois