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
If pool.query is called without a valid SQL parameter, the connection will never get realsed.
It took me quite a while to figure out that I was missing a comma between the array parameter and the query in the line below, which caused my code to leak connections. pool.query(`SELECT COUNT(*) FROM tx.tx_push_messages WHERE id= ? AND msgType= "stop-reminder";`[id])
Is this a bug, or is there some reason the processTaskPromise and processTaskCallback only calls conn.releaseWithoutError(); if the SQL parameter is set?
The text was updated successfully, but these errors were encountered:
If pool.query is called without a valid SQL parameter, the connection will never get realsed.
It took me quite a while to figure out that I was missing a comma between the array parameter and the query in the line below, which caused my code to leak connections.
pool.query(`SELECT COUNT(*) FROM tx.tx_push_messages WHERE id= ? AND msgType= "stop-reminder";`[id])
Is this a bug, or is there some reason the
processTaskPromise
andprocessTaskCallback
only callsconn.releaseWithoutError();
if the SQL parameter is set?The text was updated successfully, but these errors were encountered: