| 1 | #include <Parsers/ASTQualifiedAsterisk.h> |
|---|---|
| 2 | #include <IO/WriteHelpers.h> |
| 3 | |
| 4 | namespace DB |
| 5 | { |
| 6 | |
| 7 | void ASTQualifiedAsterisk::appendColumnName(WriteBuffer & ostr) const |
| 8 | { |
| 9 | const auto & qualifier = children.at(0); |
| 10 | qualifier->appendColumnName(ostr); |
| 11 | writeCString(".*", ostr); |
| 12 | } |
| 13 | |
| 14 | void ASTQualifiedAsterisk::formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const |
| 15 | { |
| 16 | const auto & qualifier = children.at(0); |
| 17 | qualifier->formatImpl(settings, state, frame); |
| 18 | settings.ostr << ".*"; |
| 19 | } |
| 20 | |
| 21 | } |
| 22 |