mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
Fix undeclared variable issue.
This commit is contained in:
parent
f46a6fabd1
commit
2ed30407f8
@ -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))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user