Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mysql2

Package Overview
Dependencies
Maintainers
1
Versions
186
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.0.2 to 0.0.3

test/integration/connection/test-select-utf8.js

5

lib/packets/packet.js

@@ -154,4 +154,5 @@ //var BigNumber = require("bignumber.js");

Packet.prototype.writeString = function(s) {
this.payload.write(s, this.offset);
this.offset += s.length;
var bytes = Buffer.byteLength(s, 'utf8');
this.payload.write(s, this.offset, bytes, 'utf8');
this.offset += bytes;
};

@@ -158,0 +159,0 @@

2

lib/packets/query.js

@@ -11,3 +11,3 @@ //var constants = require('../constants');

{
var length = 5 + this.query.length;
var length = 5 + Buffer.byteLength(this.query, 'utf8');
var buffer = new Buffer(length);

@@ -14,0 +14,0 @@ var packet = new Packet(0, buffer);

{
"name": "mysql2",
"version": "0.0.2",
"version": "0.0.3",
"description": "fast mysql driver",

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

@@ -5,4 +5,2 @@ var common = require('../../common');

connection.connect();
var rows = undefined;

@@ -9,0 +7,0 @@ var fields = undefined;

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