2017-04-01 09:19:00 +00:00
|
|
|
#include <Parsers/ASTQualifiedAsterisk.h>
|
2017-01-04 11:23:27 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
String ASTQualifiedAsterisk::getColumnName() const
|
|
|
|
{
|
2017-04-01 07:20:54 +00:00
|
|
|
const auto & qualifier = children.at(0);
|
|
|
|
return qualifier->getColumnName() + ".*";
|
2017-01-04 11:23:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void ASTQualifiedAsterisk::formatImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const
|
|
|
|
{
|
2017-04-01 07:20:54 +00:00
|
|
|
const auto & qualifier = children.at(0);
|
|
|
|
qualifier->formatImpl(settings, state, frame);
|
|
|
|
settings.ostr << ".*";
|
2017-01-04 11:23:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|