Closed nir-bar-zvi closed 1 month ago
Very nice bug report.
Mind giving this branch a try? https://github.com/porsager/postgres/tree/error-reassign-fix
You can try simply be npm install porsager/postgres#error-reassign-fix
Very nice bug report.
i aim to please
Mind giving this branch a try? https://github.com/porsager/postgres/tree/error-reassign-fix
You can try simply be
npm install porsager/postgres#error-reassign-fix
tested locally, looks go - ECONNREFUSED
is correctly reflected out
thanks a lot - merged to master
node version: 18.18.2 package version: ^3.4.3
if postgres connection dies while queries are running i get an unrelated error:
jumping out of here: https://github.com/porsager/postgres/blob/cc688c642fc98c4338523d3e281e03bf0c3417b8/cjs/src/connection.js#L387-L396
for the purpose of reproducing this issue i have code that runs multiple queries that wait and i kill the container while its working: