| 1 | #include <Parsers/ASTQueryWithTableAndOutput.h> |
|---|---|
| 2 | #include <Common/quoteString.h> |
| 3 | |
| 4 | |
| 5 | namespace DB |
| 6 | { |
| 7 | |
| 8 | void ASTQueryWithTableAndOutput::formatHelper(const FormatSettings & settings, const char * name) const |
| 9 | { |
| 10 | settings.ostr << (settings.hilite ? hilite_keyword : "") << name << " "<< (settings.hilite ? hilite_none : ""); |
| 11 | settings.ostr << (!database.empty() ? backQuoteIfNeed(database) + ".": "") << backQuoteIfNeed(table); |
| 12 | } |
| 13 | |
| 14 | } |
| 15 | |
| 16 |