mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
Fix explain formatting.
This commit is contained in:
parent
b282a1775f
commit
4ed499c6f0
@ -52,8 +52,14 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
void formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override
|
void formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override
|
||||||
{
|
{
|
||||||
settings.ostr << (settings.hilite ? hilite_keyword : "") << toString(kind, old_syntax) << (settings.hilite ? hilite_none : "") << " ";
|
settings.ostr << (settings.hilite ? hilite_keyword : "") << toString(kind, old_syntax) << (settings.hilite ? hilite_none : "");
|
||||||
|
|
||||||
|
if (ast_settings)
|
||||||
|
{
|
||||||
|
settings.ostr << ' ';
|
||||||
ast_settings->formatImpl(settings, state, frame);
|
ast_settings->formatImpl(settings, state, frame);
|
||||||
|
}
|
||||||
|
|
||||||
settings.ostr << settings.nl_or_ws;
|
settings.ostr << settings.nl_or_ws;
|
||||||
query->formatImpl(settings, state, frame);
|
query->formatImpl(settings, state, frame);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user