mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 20:12:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
26 lines
748 B
C++
26 lines
748 B
C++
#include <Parsers/ASTQueryParameter.h>
|
|
#include <IO/WriteHelpers.h>
|
|
#include <Common/quoteString.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
void ASTQueryParameter::formatImplWithoutAlias(const FormatSettings & settings, FormatState &, FormatStateStacked) const
|
|
{
|
|
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 : "");
|
|
}
|
|
|
|
void ASTQueryParameter::appendColumnNameImpl(WriteBuffer & ostr) const
|
|
{
|
|
writeString(name, ostr);
|
|
}
|
|
|
|
}
|