diff --git a/lib/packets/index.js b/lib/packets/index.js index c7b4e14bc7..9035433e35 100644 --- a/lib/packets/index.js +++ b/lib/packets/index.js @@ -44,11 +44,11 @@ module.exports.Error = function Error() { }; module.exports.Error.toPacket = function(args) { - var packet = new Packet(0, new Buffer(9 + Buffer.byteLength(args.message, 'utf8'))); + var packet = new Packet(0, new Buffer(13 + Buffer.byteLength(args.message, 'utf8'))); packet.offset = 4; packet.writeInt8(0xff); packet.writeInt16(args.code); - packet.writeString('#______'); + packet.writeString('#_____'); packet.writeString(args.message); return packet; }; diff --git a/package.json b/package.json index c34eb6192e..1544c1f8fe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mysql2", - "version": "0.8.11", + "version": "0.8.12", "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS", "main": "index.js", "directories": {