From 0562ab69e825d293f35272f26f887f9c2c88f5e6 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 23 Aug 2018 04:35:19 +0300 Subject: [PATCH] Fixed inconsistency between clickhouse-client and clickhouse-local [#CLICKHOUSE-2] --- dbms/programs/local/LocalServer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbms/programs/local/LocalServer.cpp b/dbms/programs/local/LocalServer.cpp index 4b8d43a8093..775916bc2b1 100644 --- a/dbms/programs/local/LocalServer.cpp +++ b/dbms/programs/local/LocalServer.cpp @@ -273,7 +273,7 @@ void LocalServer::processQueries() /// Use the same query_id (and thread group) for all queries CurrentThread::QueryScope query_scope_holder(*context); - bool echo_query = config().hasOption("echo") || config().hasOption("verbose"); + bool echo_queries = config().hasOption("echo") || config().hasOption("verbose"); std::exception_ptr exception; for (const auto & query : queries) @@ -281,8 +281,8 @@ void LocalServer::processQueries() ReadBufferFromString read_buf(query); WriteBufferFromFileDescriptor write_buf(STDOUT_FILENO); - if (echo_query) - std::cerr << query << '\n'; + if (echo_queries) + std::cout << query << '\n'; try {