Update tests

This commit is contained in:
Alexey Milovidov 2020-06-15 07:40:03 +03:00
parent d5e3e7ff76
commit 94d55abfd1
2 changed files with 5 additions and 2 deletions

View File

@ -197,7 +197,6 @@ ASTPtr ASTCreateQuery::clone() const
void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const
{
frame.need_parens = false;
frame.expression_list_always_start_on_new_line = true;
if (!database.empty() && table.empty())
{
@ -271,6 +270,8 @@ void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
<< (!as_database.empty() ? backQuoteIfNeed(as_database) + "." : "") << backQuoteIfNeed(as_table);
}
frame.expression_list_always_start_on_new_line = true;
if (columns_list)
{
settings.ostr << (settings.one_line ? " (" : "\n(");
@ -290,6 +291,8 @@ void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
settings.ostr << (settings.one_line ? ")" : "\n)");
}
frame.expression_list_always_start_on_new_line = false;
if (storage)
storage->formatImpl(settings, state, frame);