mysql2 3.14.3 → 3.14.4-canary.cc34a833

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.
@@ -295,6 +295,9 @@ class Query extends Command {
295
295
  stream.on('end', () => {
296
296
  stream.emit('close');
297
297
  });
298
+ stream.on('error', () => {
299
+ this._connection && this._connection.destroy();
300
+ });
298
301
  return stream;
299
302
  }
300
303
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql2",
3
- "version": "3.14.3",
3
+ "version": "3.14.4-canary.cc34a833",
4
4
  "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
5
5
  "main": "index.js",
6
6
  "typings": "typings/mysql/index",
@@ -49,7 +49,7 @@
49
49
  "aws-ssl-profiles": "^1.1.1",
50
50
  "denque": "^2.1.0",
51
51
  "generate-function": "^2.3.1",
52
- "iconv-lite": "^0.6.3",
52
+ "iconv-lite": "^0.7.0",
53
53
  "long": "^5.2.1",
54
54
  "lru.min": "^1.0.0",
55
55
  "named-placeholders": "^1.1.3",