Update go-sql-driver/mysql package (#7019)

This commit is contained in:
Krishnan Parthasarathi
2018-12-29 21:59:03 +05:30
committed by Nitish Tiwari
parent f24c017e9a
commit 75cd4201b0
20 changed files with 2008 additions and 801 deletions
+3 -3
View File
@@ -147,7 +147,8 @@ func (mc *mysqlConn) handleInFileRequest(name string) (err error) {
}
// send content packets
if err == nil {
// if packetSize == 0, the Reader contains no data
if err == nil && packetSize > 0 {
data := make([]byte, 4+packetSize)
var n int
for err == nil {
@@ -173,8 +174,7 @@ func (mc *mysqlConn) handleInFileRequest(name string) (err error) {
// read OK packet
if err == nil {
_, err = mc.readResultOK()
return err
return mc.readResultOK()
}
mc.readPacket()