clickhouse: fixed build [#CONV-6561].

This commit is contained in:
Michael Kolupaev 2013-02-06 11:27:56 +00:00
parent e7c3e10814
commit 2152aa56ca

View File

@ -124,10 +124,10 @@ int Server::main(const std::vector<std::string> & args)
/// Создаём системные таблицы.
global_context.addDatabase("system");
global_context.addTable("system", "one", (new StorageSystemOne("one"))->thisPtr());
global_context.addTable("system", "numbers", (new StorageSystemNumbers("numbers"))->thisPtr());
global_context.addTable("system", "tables", (new StorageSystemTables("tables", global_context))->thisPtr());
global_context.addTable("system", "databases", (new StorageSystemDatabases("databases", global_context))->thisPtr());
global_context.addTable("system", "one", StorageSystemOne::create("one"));
global_context.addTable("system", "numbers", StorageSystemNumbers::create("numbers"));
global_context.addTable("system", "tables", StorageSystemTables::create("tables", global_context));
global_context.addTable("system", "databases", StorageSystemDatabases::create("databases", global_context));
global_context.setCurrentDatabase(config.getString("default_database", "default"));