mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #48162 from ClickHouse/vdimir/remove_unused_from_gtest_transform_query
Remove unused mockSystemDatabase from gtest_transform_query_for_exter…
This commit is contained in:
commit
a629fa3ed9
@ -106,22 +106,9 @@ private:
|
||||
StorageID(db_name, table_name), ColumnsDescription{tab.columns}, ConstraintsDescription{}, String{}));
|
||||
}
|
||||
DatabaseCatalog::instance().attachDatabase(database->getDatabaseName(), database);
|
||||
// DatabaseCatalog::instance().attachDatabase("system", mockSystemDatabase());
|
||||
|
||||
context->setCurrentDatabase("test");
|
||||
}
|
||||
|
||||
DatabasePtr mockSystemDatabase()
|
||||
{
|
||||
DatabasePtr database = std::make_shared<DatabaseMemory>("system", context);
|
||||
auto tab = TableWithColumnNamesAndTypes(createDBAndTable("one", "system"), { {"dummy", std::make_shared<DataTypeUInt8>()} });
|
||||
database->attachTable(context, tab.table.table,
|
||||
std::make_shared<StorageMemory>(
|
||||
StorageID(tab.table.database, tab.table.table),
|
||||
ColumnsDescription{tab.columns}, ConstraintsDescription{}, String{}));
|
||||
|
||||
return database;
|
||||
}
|
||||
};
|
||||
|
||||
static void checkOld(
|
||||
|
Loading…
Reference in New Issue
Block a user