mysql2 3.22.3 → 3.22.5-canary.2af33a1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base/pool.js +4 -0
- package/lib/packets/packet.js +4 -1
- package/package.json +1 -1
package/lib/base/pool.js
CHANGED
|
@@ -185,6 +185,10 @@ class BasePool extends EventEmitter {
|
|
|
185
185
|
}
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
+
while (this._connectionQueue.length > 0) {
|
|
189
|
+
const queuedCallback = this._connectionQueue.shift();
|
|
190
|
+
process.nextTick(() => queuedCallback(new Error('Pool is closed.')));
|
|
191
|
+
}
|
|
188
192
|
let calledBack = false;
|
|
189
193
|
let closedConnections = 0;
|
|
190
194
|
let connection;
|
package/lib/packets/packet.js
CHANGED
|
@@ -324,7 +324,10 @@ class Packet {
|
|
|
324
324
|
leftPad(2, M),
|
|
325
325
|
leftPad(2, S),
|
|
326
326
|
].join(':')}`;
|
|
327
|
-
} else if (
|
|
327
|
+
} else if (
|
|
328
|
+
columnType === Types.DATETIME ||
|
|
329
|
+
columnType === Types.TIMESTAMP
|
|
330
|
+
) {
|
|
328
331
|
str += ' 00:00:00';
|
|
329
332
|
}
|
|
330
333
|
if (length > 10) {
|
package/package.json
CHANGED