Closed Steve-Mcl closed 4 months ago
@bestlong and @Steve-Mcl in my environment this commit works as expected.
@bestlong are you able to review and merge?
@Steve-Mcl could you change dependecies of this node to use at minimun version 10.0.2 of node mssql ? In this version there are another node-red related bug fix (see https://github.com/tediousjs/node-mssql/pull/1592).
Thanks in adnvance
@Steve-Mcl could you change dependecies of this node to use at minimun version 10.0.2 of node mssql ? In this version there are another node-red related bug fix (see tediousjs/node-mssql#1592).
Thanks in adnvance
@bombjackit dependency ^10.0.2
satisfies constraint ^10.0.0
. npm install should pull the newer dependency.
You can check this by running npm list mssql
in the .node-red directory to confirm.
handle the fact
pool.close
is now a promise.This fix is only to contain the issue raised in #91
A future change is necessary to make the
node.on('close',
callback should be async and the.disconnect
through toconnectionCleanup
functions should await so that we correctly inform node-red that it is OK to closeNOTE: this is untested - will request review before merge.