fix style

This commit is contained in:
taiyang-li 2022-03-31 16:43:23 +08:00 committed by Antonio Andelic
parent d6247338de
commit 6bc1786047

View File

@ -1046,8 +1046,7 @@ void AlterCommands::validate(const StorageInMemoryMetadata & metadata, ContextPt
if (!all_columns.has(column_name)) if (!all_columns.has(column_name))
{ {
if (!command.if_exists) if (!command.if_exists)
throw Exception{ throw Exception{"Wrong column name. Cannot find column " + backQuote(column_name) + " to modify"
"Wrong column name. Cannot find column " + backQuote(column_name) + " to modify"
+ all_columns.getHintsString(column_name), + all_columns.getHintsString(column_name),
ErrorCodes::NOT_FOUND_COLUMN_IN_BLOCK}; ErrorCodes::NOT_FOUND_COLUMN_IN_BLOCK};
else else
@ -1164,8 +1163,7 @@ void AlterCommands::validate(const StorageInMemoryMetadata & metadata, ContextPt
if (!all_columns.has(command.column_name)) if (!all_columns.has(command.column_name))
{ {
if (!command.if_exists) if (!command.if_exists)
throw Exception{ throw Exception{"Wrong column name. Cannot find column " + backQuote(command.column_name) + " to comment"
"Wrong column name. Cannot find column " + backQuote(command.column_name) + " to comment"
+ all_columns.getHintsString(command.column_name), + all_columns.getHintsString(command.column_name),
ErrorCodes::NOT_FOUND_COLUMN_IN_BLOCK}; ErrorCodes::NOT_FOUND_COLUMN_IN_BLOCK};
} }
@ -1201,8 +1199,7 @@ void AlterCommands::validate(const StorageInMemoryMetadata & metadata, ContextPt
if (!all_columns.has(command.column_name)) if (!all_columns.has(command.column_name))
{ {
if (!command.if_exists) if (!command.if_exists)
throw Exception{ throw Exception{"Wrong column name. Cannot find column " + backQuote(command.column_name) + " to rename"
"Wrong column name. Cannot find column " + backQuote(command.column_name) + " to rename"
+ all_columns.getHintsString(command.column_name), + all_columns.getHintsString(command.column_name),
ErrorCodes::NOT_FOUND_COLUMN_IN_BLOCK}; ErrorCodes::NOT_FOUND_COLUMN_IN_BLOCK};
else else