use of io.mycat.net.mysql.ErrorPacket in project Mycat-Server by MyCATApache.
the class SQLJob method errorResponse.
@Override
public void errorResponse(byte[] err, BackendConnection conn) {
ErrorPacket errPg = new ErrorPacket();
errPg.read(err);
String errMsg = "error response errno:" + errPg.errno + ", " + new String(errPg.message) + " from of sql :" + sql + " at con:" + conn;
// ER_SPECIFIC_ACCESS_DENIED_ERROR
if (errPg.errno == 1227) {
LOGGER.warn(errMsg);
} else {
LOGGER.info(errMsg);
}
conn.release();
doFinished(true, errMsg);
}
Aggregations