We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f975c34 commit d78ba17Copy full SHA for d78ba17
packets.go
@@ -102,7 +102,7 @@ func (mc *mysqlConn) writePacket(data []byte) error {
102
if err == nil && n == 4+size {
103
mc.sequence++
104
if size != maxPacketSize {
105
- break
+ return nil
106
}
107
pktLen -= size
108
data = data[size:]
@@ -117,8 +117,6 @@ func (mc *mysqlConn) writePacket(data []byte) error {
117
118
return driver.ErrBadConn
119
120
-
121
- return nil
122
123
124
/******************************************************************************
0 commit comments