Skip to content

Commit 0a31eab

Browse files
authored
Update ASTAlterQuery.cpp
1 parent d01c8c9 commit 0a31eab

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/Parsers/ASTAlterQuery.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ void ASTAlterCommand::formatImpl(WriteBuffer & ostr, const FormatSettings & sett
360360
}
361361
else if (type == ASTAlterCommand::EXPORT_PART)
362362
{
363-
ostr << (settings.hilite ? hilite_keyword : "") << "EXPORT " << "PART"
364-
<< (settings.hilite ? hilite_none : "");
363+
ostr << "EXPORT PART ";
365364
partition->format(ostr, settings, state, frame);
366365
ostr << " TO ";
367366
switch (move_destination_type)
@@ -370,11 +369,9 @@ void ASTAlterCommand::formatImpl(WriteBuffer & ostr, const FormatSettings & sett
370369
ostr << "TABLE ";
371370
if (!to_database.empty())
372371
{
373-
ostr << (settings.hilite ? hilite_identifier : "") << backQuoteIfNeed(to_database)
374-
<< (settings.hilite ? hilite_none : "") << ".";
372+
ostr << backQuoteIfNeed(to_database) << ".";
375373
}
376-
ostr << (settings.hilite ? hilite_identifier : "") << backQuoteIfNeed(to_table)
377-
<< (settings.hilite ? hilite_none : "");
374+
ostr << backQuoteIfNeed(to_table);
378375
return;
379376
default:
380377
break;

0 commit comments

Comments
 (0)