mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Merge pull request #6893 from malkfilipp/client_older_than_server
Display warning if clickhouse-client version is older than clickhouse-server.
This commit is contained in:
commit
6b1352f65c
@ -563,9 +563,17 @@ private:
|
||||
if (is_interactive)
|
||||
{
|
||||
std::cout << "Connected to " << server_name
|
||||
<< " server version " << server_version
|
||||
<< " revision " << server_revision
|
||||
<< "." << std::endl << std::endl;
|
||||
<< " server version " << server_version
|
||||
<< " revision " << server_revision
|
||||
<< "." << std::endl << std::endl;
|
||||
|
||||
if (std::make_tuple(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
|
||||
< std::make_tuple(server_version_major, server_version_minor, server_version_patch))
|
||||
{
|
||||
std::cout << "ClickHouse client version is older than ClickHouse server. "
|
||||
<< "It may lack support for new features."
|
||||
<< std::endl << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user