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

Function checkShouldReplaceQuery

src/Server/MySQLHandler.cpp:74–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72static const size_t SSL_REQUEST_PAYLOAD_SIZE = 32;
73
74static bool checkShouldReplaceQuery(const String & query, const String & prefix)
75{
76 return query.length() >= prefix.length()
77 && std::equal(prefix.begin(), prefix.end(), query.begin(), [](char a, char b) { return std::tolower(a) == std::tolower(b); });
78}
79
80static bool isFederatedServerSetupSetCommand(const String & query)
81{

Callers 2

comQueryMethod · 0.85

Calls 3

lengthMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected