Fix compile error

This commit is contained in:
János Benjamin Antal 2024-11-19 13:29:28 +00:00
parent a1fb0ad706
commit 144fd4082b

View File

@ -74,9 +74,9 @@ void ASTAlterCommand::formatImpl(const FormatSettings & settings, FormatState &
if (format_alter_commands_with_parentheses)
{
settings.ostr << "(";
closing_bracket_guard = make_scope_guard([&settings](){
closing_bracket_guard = make_scope_guard(std::function<void(void)>([&settings](){
settings.ostr << ")";
});
}));
}
if (type == ASTAlterCommand::ADD_COLUMN)