Add default branch to compressed_decimals read

This commit is contained in:
BohuTANG 2020-05-12 22:00:37 +08:00 committed by zhang2014
parent 939bc413ba
commit 8090cf1a00
2 changed files with 2 additions and 2 deletions

View File

@ -75,9 +75,7 @@ void MySQLClient::handshake()
packet_sender->receivePacket(packet_response);
packet_sender->resetSequenceId();
if (packet_response.getType() == PACKET_ERR)
{
throw MySQLClientError(packet_response.err.error_message, ErrorCodes::UNKNOWN_PACKET_FROM_SERVER);
}
}
void MySQLClient::writeCommand(char command, String query)

View File

@ -573,6 +573,8 @@ namespace MySQLReplication
readBigEndianStrict(reader, reinterpret_cast<char *>(&val), 4);
break;
}
default:
break;
}
format += std::to_string(val);
}