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

Method formatQueryImpl

src/Parsers/ASTUpdateQuery.cpp:35–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void ASTUpdateQuery::formatQueryImpl(WriteBuffer & ostr, const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const
36{
37 ostr << "UPDATE ";
38
39 if (database)
40 {
41 ostr << backQuoteIfNeed(getDatabase());
42 ostr << ".";
43 }
44
45 ostr << backQuoteIfNeed(getTable());
46 formatOnCluster(ostr, settings);
47
48 ostr << " SET ";
49 assignments->format(ostr, settings, state, frame);
50
51 if (partition)
52 {
53 ostr << " IN PARTITION ";
54 partition->format(ostr, settings, state, frame);
55 }
56
57 ostr << " WHERE ";
58 predicate->format(ostr, settings, state, frame);
59}
60
61}

Callers

nothing calls this directly

Calls 3

backQuoteIfNeedFunction · 0.85
getDatabaseFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected