1#include <Parsers/ASTQueryParameter.h>
2#include <IO/WriteHelpers.h>
3#include <Common/quoteString.h>
4
5
6namespace DB
7{
8
9void ASTQueryParameter::formatImplWithoutAlias(const FormatSettings & settings, FormatState &, FormatStateStacked) const
10{
11 settings.ostr
12 << (settings.hilite ? hilite_substitution : "") << '{'
13 << (settings.hilite ? hilite_identifier : "") << backQuoteIfNeed(name)
14 << (settings.hilite ? hilite_substitution : "") << ':'
15 << (settings.hilite ? hilite_identifier : "") << type
16 << (settings.hilite ? hilite_substitution : "") << '}'
17 << (settings.hilite ? hilite_none : "");
18}
19
20void ASTQueryParameter::appendColumnNameImpl(WriteBuffer & ostr) const
21{
22 writeString(name, ostr);
23}
24
25}
26