mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Remove trailing whitespace in default client_name
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
9fa6e6e7df
commit
44bf8ba568
@ -193,7 +193,10 @@ void ClientInfo::setInitialQuery()
|
||||
{
|
||||
query_kind = QueryKind::INITIAL_QUERY;
|
||||
fillOSUserHostNameAndVersionInfo();
|
||||
client_name = (DBMS_NAME " ") + client_name;
|
||||
if (client_name.empty())
|
||||
client_name = DBMS_NAME;
|
||||
else
|
||||
client_name = (DBMS_NAME " ") + client_name;
|
||||
}
|
||||
|
||||
|
||||
|
1
tests/queries/0_stateless/02270_client_name.reference
Normal file
1
tests/queries/0_stateless/02270_client_name.reference
Normal file
@ -0,0 +1 @@
|
||||
"ClickHouse"
|
3
tests/queries/0_stateless/02270_client_name.sql
Normal file
3
tests/queries/0_stateless/02270_client_name.sql
Normal file
@ -0,0 +1,3 @@
|
||||
select 1 settings log_queries=1, log_queries_min_type='QUERY_FINISH' format Null;
|
||||
system flush logs;
|
||||
select client_name from system.query_log where current_database = currentDatabase() and query like 'select 1%' format CSV;
|
Loading…
Reference in New Issue
Block a user