CLICKHOUSE-3772: Fix initialization

This commit is contained in:
alesapin 2018-07-20 13:13:23 +03:00
parent 73bcc95af9
commit 32e03f42ef

View File

@ -47,7 +47,7 @@ namespace
}
ASTPtr createFakeEnumCreationAst()
{
String fakename = "e";
String fakename{"e"};
ASTPtr name = std::make_shared<ASTLiteral>(Field(fakename.c_str(), fakename.size()));
ASTPtr value = std::make_shared<ASTLiteral>(Field(UInt64(1)));
ASTPtr ast_func = makeASTFunction("equals", name, value);