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:
Andrey Mironov 2015-03-20 18:12:03 +03:00
parent 72ed02d5e8
commit 47148229e0

View File

@ -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();