From c07bd87716292ffe1cc748ae3c4e2267d2213a5c Mon Sep 17 00:00:00 2001 From: Vitaly Baranov Date: Sat, 25 May 2019 19:14:15 +0300 Subject: [PATCH] Print "ClickHouse" when writing server's info at the start of the client session. --- dbms/programs/server/MySQLHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/programs/server/MySQLHandler.cpp b/dbms/programs/server/MySQLHandler.cpp index dda6a4eb736..d4de9d9d3f4 100644 --- a/dbms/programs/server/MySQLHandler.cpp +++ b/dbms/programs/server/MySQLHandler.cpp @@ -62,7 +62,7 @@ void MySQLHandler::run() * This plugin must do the same to stay consistent with historical behavior if it is set to operate as a default plugin. * https://github.com/mysql/mysql-server/blob/8.0/sql/auth/sql_authentication.cc#L3994 */ - Handshake handshake(server_capability_flags, connection_id, VERSION_STRING, scramble + '\0'); + Handshake handshake(server_capability_flags, connection_id, VERSION_STRING + String("-") + VERSION_NAME, scramble + '\0'); packet_sender->sendPacket(handshake, true); LOG_TRACE(log, "Sent handshake");