2019-05-18 21:07:23 +00:00
|
|
|
#include <Parsers/ASTQueryParameter.h>
|
|
|
|
#include <IO/WriteHelpers.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-05-18 21:07:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
void ASTQueryParameter::formatImplWithoutAlias(const FormatSettings & settings, FormatState &, FormatStateStacked) const
|
|
|
|
{
|
2019-06-15 17:52:53 +00:00
|
|
|
settings.ostr
|
|
|
|
<< (settings.hilite ? hilite_substitution : "") << '{'
|
|
|
|
<< (settings.hilite ? hilite_identifier : "") << backQuoteIfNeed(name)
|
|
|
|
<< (settings.hilite ? hilite_substitution : "") << ':'
|
|
|
|
<< (settings.hilite ? hilite_identifier : "") << type
|
|
|
|
<< (settings.hilite ? hilite_substitution : "") << '}'
|
|
|
|
<< (settings.hilite ? hilite_none : "");
|
2019-05-18 21:07:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void ASTQueryParameter::appendColumnNameImpl(WriteBuffer & ostr) const
|
|
|
|
{
|
|
|
|
writeString(name, ostr);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|