mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
dbms: allow DataTypeFactory to be some weird multi-instance singleton, I don't feel like modifying all the code which uses it right now
This commit is contained in:
parent
72ed02d5e8
commit
47148229e0
@ -2,6 +2,8 @@
|
||||
|
||||
#include <map>
|
||||
|
||||
#include <Yandex/singleton.h>
|
||||
|
||||
#include <Poco/RegularExpression.h>
|
||||
|
||||
#include <DB/DataTypes/IDataType.h>
|
||||
@ -12,7 +14,7 @@ namespace DB
|
||||
|
||||
/** Позволяет создать тип данных по его имени.
|
||||
*/
|
||||
class DataTypeFactory
|
||||
class DataTypeFactory : public Singleton<DataTypeFactory>
|
||||
{
|
||||
public:
|
||||
DataTypeFactory();
|
||||
|
Loading…
Reference in New Issue
Block a user