@@ -228,7 +228,7 @@ func (mc *mysqlConn) writeAuthPacket(cipher []byte) error {
228
228
data := mc .buf .takeSmallBuffer (pktLen + 4 )
229
229
if data == nil {
230
230
// can not take the buffer. Something must be wrong with the connection
231
- errLog .Print ("Busy buffer" )
231
+ errLog .Print (errBusyBuffer . Error () )
232
232
return driver .ErrBadConn
233
233
}
234
234
@@ -299,7 +299,7 @@ func (mc *mysqlConn) writeOldAuthPacket(cipher []byte) error {
299
299
data := mc .buf .takeSmallBuffer (pktLen + 4 )
300
300
if data == nil {
301
301
// can not take the buffer. Something must be wrong with the connection
302
- errLog .Print ("Busy buffer" )
302
+ errLog .Print (errBusyBuffer . Error () )
303
303
return driver .ErrBadConn
304
304
}
305
305
@@ -320,7 +320,7 @@ func (mc *mysqlConn) writeCommandPacket(command byte) error {
320
320
data := mc .buf .takeSmallBuffer (4 + 1 )
321
321
if data == nil {
322
322
// can not take the buffer. Something must be wrong with the connection
323
- errLog .Print ("Busy buffer" )
323
+ errLog .Print (errBusyBuffer . Error () )
324
324
return driver .ErrBadConn
325
325
}
326
326
@@ -339,7 +339,7 @@ func (mc *mysqlConn) writeCommandPacketStr(command byte, arg string) error {
339
339
data := mc .buf .takeBuffer (pktLen + 4 )
340
340
if data == nil {
341
341
// can not take the buffer. Something must be wrong with the connection
342
- errLog .Print ("Busy buffer" )
342
+ errLog .Print (errBusyBuffer . Error () )
343
343
return driver .ErrBadConn
344
344
}
345
345
@@ -360,7 +360,7 @@ func (mc *mysqlConn) writeCommandPacketUint32(command byte, arg uint32) error {
360
360
data := mc .buf .takeSmallBuffer (4 + 1 + 4 )
361
361
if data == nil {
362
362
// can not take the buffer. Something must be wrong with the connection
363
- errLog .Print ("Busy buffer" )
363
+ errLog .Print (errBusyBuffer . Error () )
364
364
return driver .ErrBadConn
365
365
}
366
366
@@ -751,7 +751,7 @@ func (stmt *mysqlStmt) writeExecutePacket(args []driver.Value) error {
751
751
}
752
752
if data == nil {
753
753
// can not take the buffer. Something must be wrong with the connection
754
- errLog .Print ("Busy buffer" )
754
+ errLog .Print (errBusyBuffer . Error () )
755
755
return driver .ErrBadConn
756
756
}
757
757
0 commit comments