Open granteagon opened 9 years ago
Please share your code, so we can try to reproduce the bug.
I've run into this bug recently. Looking at the code, https://github.com/IbuildingsItaly/sails-db2/blob/master/index.js#L223-L232, when the teardown method is called without a name it iterates through all the available connections. The first argument to that closeConnection method becomes the entire connection object not the name. This is causing the bug referenced above.
I submitted a pull request for this when I had the same issue https://github.com/IbuildingsItaly/sails-db2/pull/15
I'm getting an error trying to connect. I'm using an ssh tunnel to expose port 50000 locally, if that helps.
Sails v0.11.0 DB2 LUW v9.7