2019-06-29 16:58:32 +00:00
|
|
|
#include <Parsers/ASTQueryWithTableAndOutput.h>
|
2019-10-08 18:42:22 +00:00
|
|
|
#include <Common/quoteString.h>
|
2020-11-09 16:05:40 +00:00
|
|
|
#include <IO/Operators.h>
|
2019-06-29 16:58:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
void ASTQueryWithTableAndOutput::formatHelper(const FormatSettings & settings, const char * name) const
|
|
|
|
{
|
|
|
|
settings.ostr << (settings.hilite ? hilite_keyword : "") << name << " " << (settings.hilite ? hilite_none : "");
|
2021-09-06 22:13:54 +00:00
|
|
|
settings.ostr << (!getDatabase().empty() ? backQuoteIfNeed(getDatabase()) + "." : "") << backQuoteIfNeed(getTable());
|
2019-06-29 16:58:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|