From 1dc5c4cba336b2bf3e4ee7219b296f8762522a95 Mon Sep 17 00:00:00 2001 From: Yuriy Date: Sun, 7 Apr 2019 15:33:06 +0300 Subject: [PATCH] explicitly defined constructors --- dbms/src/Core/MySQLProtocol.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dbms/src/Core/MySQLProtocol.h b/dbms/src/Core/MySQLProtocol.h index 488bf1f7e7a..f22aeaf35f5 100644 --- a/dbms/src/Core/MySQLProtocol.h +++ b/dbms/src/Core/MySQLProtocol.h @@ -301,6 +301,10 @@ public: String database; String auth_plugin_name; + HandshakeResponse() = default; + + HandshakeResponse(const HandshakeResponse &) = default; + void readPayload(String s) override { std::istringstream ss(s); @@ -368,6 +372,10 @@ class NullTerminatedString : public ReadPacket public: String value; + NullTerminatedString() = default; + + NullTerminatedString(const NullTerminatedString &) = default; + void readPayload(String s) override { if (s.length() == 0 || s.back() != 0) @@ -542,6 +550,10 @@ class ComFieldList : public ReadPacket public: String table, field_wildcard; + ComFieldList() = default; + + ComFieldList(const ComFieldList &) = default; + void readPayload(String payload) { std::istringstream ss(payload);