From 8090cf1a00b70b8923e8f4de54e223195d3bd8e7 Mon Sep 17 00:00:00 2001 From: BohuTANG Date: Tue, 12 May 2020 22:00:37 +0800 Subject: [PATCH] Add default branch to compressed_decimals read --- src/Core/MySQLClient.cpp | 2 -- src/Core/MySQLReplication.cpp | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/MySQLClient.cpp b/src/Core/MySQLClient.cpp index 38887ad84b2..4b420068571 100644 --- a/src/Core/MySQLClient.cpp +++ b/src/Core/MySQLClient.cpp @@ -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) diff --git a/src/Core/MySQLReplication.cpp b/src/Core/MySQLReplication.cpp index ae7b942d64f..642bc037081 100644 --- a/src/Core/MySQLReplication.cpp +++ b/src/Core/MySQLReplication.cpp @@ -573,6 +573,8 @@ namespace MySQLReplication readBigEndianStrict(reader, reinterpret_cast(&val), 4); break; } + default: + break; } format += std::to_string(val); }