You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

mysql2

Package Overview
Dependencies
Maintainers
3
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.9.6 to 3.9.7

4

lib/parsers/binary_parser.js

@@ -45,5 +45,5 @@ 'use strict';

if (helpers.typeMatch(field.columnType, dateStrings, Types)) {
return `packet.readDateTimeString(${field.decimals});`;
return `packet.readDateTimeString(${parseInt(field.decimals, 10)});`;
}
return `packet.readDateTime('${timezone}');`;
return `packet.readDateTime(${helpers.srcEscape(timezone)});`;
case Types.TIME:

@@ -50,0 +50,0 @@ return 'packet.readTimeString()';

@@ -51,3 +51,3 @@ 'use strict';

}
return `packet.parseDate('${timezone}')`;
return `packet.parseDate(${helpers.srcEscape(timezone)})`;
case Types.DATETIME:

@@ -58,3 +58,3 @@ case Types.TIMESTAMP:

}
return `packet.parseDateTime('${timezone}')`;
return `packet.parseDateTime(${helpers.srcEscape(timezone)})`;
case Types.TIME:

@@ -61,0 +61,0 @@ return 'packet.readLengthCodedString("ascii")';

{
"name": "mysql2",
"version": "3.9.6",
"version": "3.9.7",
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc