Comparing version 0.0.2 to 0.0.3
@@ -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 @@ |
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32188
33
900