From 9882d160d8ba9498297d53d0c6f6bbdae29641a2 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Wed, 2 Jun 2021 07:38:56 +0300 Subject: [PATCH] clichouse-client: fix readability-identifier-naming --- programs/client/Client.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/programs/client/Client.cpp b/programs/client/Client.cpp index e2fe7921b8c..87f5efdb212 100644 --- a/programs/client/Client.cpp +++ b/programs/client/Client.cpp @@ -967,7 +967,7 @@ private: processTextAsSingleQuery("SET send_logs_level = 'fatal'"); } - bool echo_queries_ = echo_queries; + bool echo_query = echo_queries; /// Several queries separated by ';'. /// INSERT data is ended by the end of line, not ';'. @@ -1110,11 +1110,11 @@ private: // Echo all queries if asked; makes for a more readable reference // file. - echo_queries_ = test_hint.echoQueries().value_or(echo_queries_); + echo_query = test_hint.echoQueries().value_or(echo_query); try { - processParsedSingleQuery(echo_queries_); + processParsedSingleQuery(echo_query); } catch (...) { @@ -1546,14 +1546,14 @@ private: // 'query_to_send' -- the query text that is sent to server, // 'full_query' -- for INSERT queries, contains the query and the data that // follow it. Its memory is referenced by ASTInsertQuery::begin, end. - void processParsedSingleQuery(std::optional echo_queries_ = {}) + void processParsedSingleQuery(std::optional echo_query = {}) { resetOutput(); client_exception.reset(); server_exception.reset(); have_error = false; - if (echo_queries_.value_or(echo_queries)) + if (echo_query.value_or(echo_queries)) { writeString(full_query, std_out); writeChar('\n', std_out);