We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 328d10e commit 7da28d2Copy full SHA for 7da28d2
lib/Drivers/DML/mysql.js
@@ -53,7 +53,11 @@ Driver.prototype.connect = function (cb) {
53
if (this.opts.pool) {
54
return this.db.pool.getConnection(function (err, con) {
55
if (!err) {
56
- con.end();
+ if (con.release) {
57
+ con.release();
58
+ } else {
59
+ con.end();
60
+ }
61
}
62
return cb(err);
63
});
@@ -218,7 +222,11 @@ Driver.prototype.poolQuery = function (query, cb) {
218
222
219
223
220
224
con.query(query, function (err, data) {
221
225
226
227
228
229
230
231
return cb(err, data);
232
0 commit comments