Switch to tuples

This commit is contained in:
malkfilipp 2019-09-11 11:41:57 +03:00
parent b63d2422d0
commit 62f85c0a3a

View File

@ -567,9 +567,8 @@ private:
<< " revision " << server_revision
<< "." << std::endl << std::endl;
if (VERSION_MAJOR < server_version_major
|| VERSION_MINOR < server_version_minor
|| VERSION_PATCH < server_version_patch)
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."