From 764a292e3f82ee1249a1a10180f1372d999c9c1b Mon Sep 17 00:00:00 2001 From: Julien Schmidt Date: Fri, 10 May 2013 10:42:46 +0200 Subject: [PATCH] Fix CMD packet header copy & paste fail --- packets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packets.go b/packets.go index 3e468acb2..86f311500 100644 --- a/packets.go +++ b/packets.go @@ -282,7 +282,7 @@ func (mc *mysqlConn) writeCommandPacket(command byte) error { // Send CMD packet return mc.writePacket([]byte{ // Add the packet header [24bit length + 1 byte sequence] - 0x05, // 5 bytes long + 0x01, // 1 byte long 0x00, 0x00, 0x00, // mc.sequence