mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 15:21:43 +00:00
Fix explain formatting.
This commit is contained in:
parent
b282a1775f
commit
4ed499c6f0
@ -52,8 +52,14 @@ public:
|
||||
protected:
|
||||
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 : "") << " ";
|
||||
ast_settings->formatImpl(settings, state, frame);
|
||||
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);
|
||||
}
|
||||
|
||||
settings.ostr << settings.nl_or_ws;
|
||||
query->formatImpl(settings, state, frame);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user