Skip to content

Commit b4eb2f3

Browse files
committed
Merge pull request #72 from go-sql-driver/cmd-fix
Fix CMD packet header
2 parents a07a61e + 764a292 commit b4eb2f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func (mc *mysqlConn) writeCommandPacket(command byte) error {
282282
// Send CMD packet
283283
return mc.writePacket([]byte{
284284
// Add the packet header [24bit length + 1 byte sequence]
285-
0x05, // 5 bytes long
285+
0x01, // 1 byte long
286286
0x00,
287287
0x00,
288288
0x00, // mc.sequence

0 commit comments

Comments
 (0)