Merge pull request #53849 from ClickHouse/tavplubix-patch-9

Fix segfault in `TableNameHints` (with `Lazy` database)
This commit is contained in:
Alexander Tokmakov 2023-08-28 17:51:30 +02:00 committed by GitHub
commit 98e6a6b09b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,10 +44,7 @@ public:
if (database)
{
for (auto table_it = database->getTablesIterator(context); table_it->isValid(); table_it->next())
{
const auto & storage_id = table_it->table()->getStorageID();
result.emplace_back(storage_id.getTableName());
}
result.emplace_back(table_it->name());
}
return result;
}