Fix trash

This commit is contained in:
Alexey Milovidov 2024-02-21 08:29:39 +01:00
parent ee3314b0a0
commit a23e766edc
2 changed files with 9 additions and 6 deletions

View File

@ -28,13 +28,16 @@ void ASTUndropQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
chassert(table);
if (database)
if (table)
{
database->formatImpl(settings, state, frame);
settings.ostr << '.';
}
if (database)
{
database->formatImpl(settings, state, frame);
settings.ostr << '.';
}
table->formatImpl(settings, state, frame);
table->formatImpl(settings, state, frame);
}
if (uuid != UUIDHelpers::Nil)
settings.ostr << (settings.hilite ? hilite_keyword : "") << " UUID " << (settings.hilite ? hilite_none : "")

View File

@ -58,7 +58,7 @@ bool parseUndropQuery(IParser::Pos & pos, ASTPtr & node, Expected & expected)
if (database)
query->children.push_back(database);
assert (table);
chassert(table);
query->children.push_back(table);
query->cluster = cluster_str;