diff --git a/dbms/programs/server/MySQLHandler.h b/dbms/programs/server/MySQLHandler.h index 6ca2419ad1f4c21c9d7733c3c64ce1d3c1653df3..710a8cd3afc1465daa40e745ce8f5a3c886fcdfc 100644 --- a/dbms/programs/server/MySQLHandler.h +++ b/dbms/programs/server/MySQLHandler.h @@ -10,14 +10,12 @@ namespace DB { /// Handler for MySQL wire protocol connections. Allows to connect to ClickHouse using MySQL client. -class MySQLHandler : public Poco::Net::TCPServerConnection { +class MySQLHandler : public Poco::Net::TCPServerConnection +{ public: - MySQLHandler(IServer &server_, const Poco::Net::StreamSocket &socket_) - : Poco::Net::TCPServerConnection(socket_) - , server(server_) - , log(&Poco::Logger::get("MySQLHandler")) - , connection_context(server.context()) - , connection_id(last_connection_id++) + MySQLHandler(IServer & server_, const Poco::Net::StreamSocket & socket_) + : Poco::Net::TCPServerConnection(socket_), server(server_), log(&Poco::Logger::get("MySQLHandler")), + connection_context(server.context()), connection_id(last_connection_id++) { } @@ -30,6 +28,7 @@ public: void comPing(); void comInitDB(String payload); + private: IServer & server; Poco::Logger * log;