1
0
Fork 0
forked from forgejo/forgejo

Dep upgrade mysql lib (#4161)

*  update gopkg file to add sql dep
This commit is contained in:
techknowlogick 2018-07-03 17:58:31 -04:00 committed by GitHub
parent 280ebcbf7c
commit 9d4c1ddfa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 1813 additions and 614 deletions

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()