mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Print table name in message about missing column.
This commit is contained in:
parent
bb77b7a326
commit
9d3eef80b0
@ -157,7 +157,7 @@ void IStorage::check(const Names & column_names) const
|
||||
{
|
||||
if (columns_map.end() == columns_map.find(name))
|
||||
throw Exception(
|
||||
"There is no column with name " + name + " in table. There are columns: " + list_of_columns,
|
||||
"There is no column with name " + backQuote(name) + " in table " + getTableName() + ". There are columns: " + list_of_columns,
|
||||
ErrorCodes::NO_SUCH_COLUMN_IN_TABLE);
|
||||
|
||||
if (unique_names.end() != unique_names.find(name))
|
||||
|
Loading…
Reference in New Issue
Block a user