@@ -228,7 +228,7 @@ func (mc *mysqlConn) writeAuthPacket(cipher []byte) error {
228228 data := mc .buf .takeSmallBuffer (pktLen + 4 )
229229 if data == nil {
230230 // can not take the buffer. Something must be wrong with the connection
231- errLog .Print ("Busy buffer" )
231+ errLog .Print (errBusyBuffer . Error () )
232232 return driver .ErrBadConn
233233 }
234234
@@ -299,7 +299,7 @@ func (mc *mysqlConn) writeOldAuthPacket(cipher []byte) error {
299299 data := mc .buf .takeSmallBuffer (pktLen + 4 )
300300 if data == nil {
301301 // can not take the buffer. Something must be wrong with the connection
302- errLog .Print ("Busy buffer" )
302+ errLog .Print (errBusyBuffer . Error () )
303303 return driver .ErrBadConn
304304 }
305305
@@ -320,7 +320,7 @@ func (mc *mysqlConn) writeCommandPacket(command byte) error {
320320 data := mc .buf .takeSmallBuffer (4 + 1 )
321321 if data == nil {
322322 // can not take the buffer. Something must be wrong with the connection
323- errLog .Print ("Busy buffer" )
323+ errLog .Print (errBusyBuffer . Error () )
324324 return driver .ErrBadConn
325325 }
326326
@@ -339,7 +339,7 @@ func (mc *mysqlConn) writeCommandPacketStr(command byte, arg string) error {
339339 data := mc .buf .takeBuffer (pktLen + 4 )
340340 if data == nil {
341341 // can not take the buffer. Something must be wrong with the connection
342- errLog .Print ("Busy buffer" )
342+ errLog .Print (errBusyBuffer . Error () )
343343 return driver .ErrBadConn
344344 }
345345
@@ -360,7 +360,7 @@ func (mc *mysqlConn) writeCommandPacketUint32(command byte, arg uint32) error {
360360 data := mc .buf .takeSmallBuffer (4 + 1 + 4 )
361361 if data == nil {
362362 // can not take the buffer. Something must be wrong with the connection
363- errLog .Print ("Busy buffer" )
363+ errLog .Print (errBusyBuffer . Error () )
364364 return driver .ErrBadConn
365365 }
366366
@@ -751,7 +751,7 @@ func (stmt *mysqlStmt) writeExecutePacket(args []driver.Value) error {
751751 }
752752 if data == nil {
753753 // can not take the buffer. Something must be wrong with the connection
754- errLog .Print ("Busy buffer" )
754+ errLog .Print (errBusyBuffer . Error () )
755755 return driver .ErrBadConn
756756 }
757757
0 commit comments