Explorar el Código

Merge pull request #72 from go-sql-driver/cmd-fix

Fix CMD packet header
Julien Schmidt hace 12 años
padre
commit
b4eb2f3d5e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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