Fix undeclared variable issue.

This commit is contained in:
Yarik Briukhovetskyi 2024-10-31 19:07:45 +01:00 committed by GitHub
parent f46a6fabd1
commit 2ed30407f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -395,10 +395,10 @@ void DatabaseOnDisk::checkMetadataFilenameAvailabilityUnlocked(const String & to
const auto escaped_name_length = escapeForFileName(to_table_name).length(); const auto escaped_name_length = escapeForFileName(to_table_name).length();
if (escaped_length > allowed_max_length) if (escaped_name_length > allowed_max_length)
throw Exception(ErrorCodes::ARGUMENT_OUT_OF_BOUND, throw Exception(ErrorCodes::ARGUMENT_OUT_OF_BOUND,
"The max length of table name for database {} is {}, current length is {}", "The max length of table name for database {} is {}, current length is {}",
database_name, allowed_max_length, escaped_length); database_name, allowed_max_length, escaped_name_length);
if (fs::exists(table_metadata_path)) if (fs::exists(table_metadata_path))
{ {