Skip to content

Commit b22024b

Browse files
committed
reorder mysqlConn fields and remove unused protocol field
Fixes #145
1 parent 4615006 commit b22024b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

connection.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@ import (
1818
)
1919

2020
type mysqlConn struct {
21-
cfg *config
22-
flags clientFlag
23-
netConn net.Conn
2421
buf *buffer
25-
protocol uint8
26-
sequence uint8
22+
netConn net.Conn
2723
affectedRows uint64
2824
insertId uint64
25+
cfg *config
2926
maxPacketAllowed int
3027
maxWriteSize int
28+
flags clientFlag
29+
sequence uint8
3130
parseTime bool
3231
strict bool
3332
}

0 commit comments

Comments
 (0)