Parcourir la source

Fix CMD packet header

copy & paste fail
Julien Schmidt il y a 12 ans
Parent
commit
764a292e3f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packets.go

+ 1 - 1
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