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

Method getRewrittenQuery

src/Interpreters/InterpreterShowSettingQuery.cpp:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21String InterpreterShowSettingQuery::getRewrittenQuery()
22{
23 const auto & query = query_ptr->as<ASTShowSettingQuery &>();
24 return fmt::format(R"(SELECT value FROM system.settings WHERE name = '{0}')", escapeString(query.getSettingName()));
25}
26
27
28BlockIO InterpreterShowSettingQuery::execute()

Callers

nothing calls this directly

Calls 2

escapeStringFunction · 0.85
formatFunction · 0.70

Tested by

no test coverage detected