Skip to content

Commit

Permalink
Merge pull request ClickHouse#60080 from kitaisreal/temporary-table-a…
Browse files Browse the repository at this point in the history
…lready-exists-exception-message-fix

Temporary table already exists exception message fix
  • Loading branch information
alexey-milovidov authored Feb 17, 2024
2 parents a955ae8 + 96d9782 commit 6b32622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Interpreters/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ void Context::addExternalTable(const String & table_name, TemporaryTableHolder &

std::lock_guard lock(mutex);
if (external_tables_mapping.end() != external_tables_mapping.find(table_name))
throw Exception(ErrorCodes::TABLE_ALREADY_EXISTS, "Temporary table {} already exists.", backQuoteIfNeed(table_name));
throw Exception(ErrorCodes::TABLE_ALREADY_EXISTS, "Temporary table {} already exists", backQuoteIfNeed(table_name));
external_tables_mapping.emplace(table_name, std::make_shared<TemporaryTableHolder>(std::move(temporary_table)));
}

Expand Down

0 comments on commit 6b32622

Please sign in to comment.