| 33 | } |
| 34 | |
| 35 | void 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 | } |
nothing calls this directly
no test coverage detected