MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getServerVersion

Method getServerVersion

src/Client/Connection.cpp:701–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701void Connection::getServerVersion(const ConnectionTimeouts & timeouts,
702 String & name,
703 UInt64 & version_major,
704 UInt64 & version_minor,
705 UInt64 & version_patch,
706 UInt64 & revision)
707{
708 if (!isConnected())
709 connect(timeouts);
710
711 name = server_name;
712 version_major = server_version_major;
713 version_minor = server_version_minor;
714 version_patch = server_version_patch;
715 revision = server_revision;
716}
717
718UInt64 Connection::getServerRevision(const ConnectionTimeouts & timeouts)
719{

Callers 2

connectMethod · 0.45
getLoadSuggestionQueryFunction · 0.45

Calls 1

connectFunction · 0.85

Tested by

no test coverage detected