|
|
@@ -228,7 +228,7 @@ func (mc *mysqlConn) writeAuthPacket(cipher []byte) error {
|
|
|
data := mc.buf.takeSmallBuffer(pktLen + 4)
|
|
|
if data == nil {
|
|
|
// can not take the buffer. Something must be wrong with the connection
|
|
|
- errLog.Print("Busy buffer")
|
|
|
+ errLog.Print(errBusyBuffer.Error())
|
|
|
return driver.ErrBadConn
|
|
|
}
|
|
|
|
|
|
@@ -299,7 +299,7 @@ func (mc *mysqlConn) writeOldAuthPacket(cipher []byte) error {
|
|
|
data := mc.buf.takeSmallBuffer(pktLen + 4)
|
|
|
if data == nil {
|
|
|
// can not take the buffer. Something must be wrong with the connection
|
|
|
- errLog.Print("Busy buffer")
|
|
|
+ errLog.Print(errBusyBuffer.Error())
|
|
|
return driver.ErrBadConn
|
|
|
}
|
|
|
|
|
|
@@ -320,7 +320,7 @@ func (mc *mysqlConn) writeCommandPacket(command byte) error {
|
|
|
data := mc.buf.takeSmallBuffer(4 + 1)
|
|
|
if data == nil {
|
|
|
// can not take the buffer. Something must be wrong with the connection
|
|
|
- errLog.Print("Busy buffer")
|
|
|
+ errLog.Print(errBusyBuffer.Error())
|
|
|
return driver.ErrBadConn
|
|
|
}
|
|
|
|
|
|
@@ -339,7 +339,7 @@ func (mc *mysqlConn) writeCommandPacketStr(command byte, arg string) error {
|
|
|
data := mc.buf.takeBuffer(pktLen + 4)
|
|
|
if data == nil {
|
|
|
// can not take the buffer. Something must be wrong with the connection
|
|
|
- errLog.Print("Busy buffer")
|
|
|
+ errLog.Print(errBusyBuffer.Error())
|
|
|
return driver.ErrBadConn
|
|
|
}
|
|
|
|
|
|
@@ -360,7 +360,7 @@ func (mc *mysqlConn) writeCommandPacketUint32(command byte, arg uint32) error {
|
|
|
data := mc.buf.takeSmallBuffer(4 + 1 + 4)
|
|
|
if data == nil {
|
|
|
// can not take the buffer. Something must be wrong with the connection
|
|
|
- errLog.Print("Busy buffer")
|
|
|
+ errLog.Print(errBusyBuffer.Error())
|
|
|
return driver.ErrBadConn
|
|
|
}
|
|
|
|
|
|
@@ -751,7 +751,7 @@ func (stmt *mysqlStmt) writeExecutePacket(args []driver.Value) error {
|
|
|
}
|
|
|
if data == nil {
|
|
|
// can not take the buffer. Something must be wrong with the connection
|
|
|
- errLog.Print("Busy buffer")
|
|
|
+ errLog.Print(errBusyBuffer.Error())
|
|
|
return driver.ErrBadConn
|
|
|
}
|
|
|
|