Socket
Socket
Sign inDemoInstall

mysql2

Package Overview
Dependencies
Maintainers
1
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mysql2 - npm Package Compare versions

Comparing version 0.8.4 to 0.8.5

test/integration/connection/test-execute-1.js

3

lib/commands/execute.js

@@ -115,2 +115,3 @@ var Command = require('./command');

{
connection.sequenceId = 0;
var executePacket = new Packets.Execute(this.statementInfo.id, this.parameters);

@@ -171,2 +172,2 @@ connection.writePacket(executePacket.toPacket(1));

module.exports = Execute;
module.exports = Execute;

@@ -63,6 +63,7 @@ var net = require('net');

this.packetParser = new PacketParser(function(packet) {
connection.handlePacket(packet);
});
// TODO: check if bind can be a performance problem
// see https://gist.github.com/khoomeister/4985691#use-that-instead-of-bind
this.packetParser = new PacketParser(this.handlePacket.bind(this));
if (this.stream instanceof net.Stream) {

@@ -69,0 +70,0 @@ this.stream.ondata = function(data, start, end) {

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

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

@@ -47,3 +47,3 @@ module.exports.createConnection = function(callback) {

user: process.env.MYSQL_USER || 'root',
password: process.env.CI ? null : 'test',
password: process.env.CI ? null : '',
database: 'test',

@@ -50,0 +50,0 @@ port: process.env.MYSQL_PORT || 3306

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc