提交 697067f2 编写于 作者: A Alexey Milovidov

Fix lifetime of Context reference in functions (first quick variant) [#CLICKHOUSE-2]

上级 87dfd8e4
......@@ -2054,7 +2054,7 @@ void ExpressionAnalyzer::getActionsImpl(const ASTPtr & ast, bool no_subqueries,
if (AggregateFunctionFactory::instance().isAggregateFunctionName(node->name))
return;
const FunctionBuilderPtr & function_builder = FunctionFactory::instance().get(node->name, context);
const FunctionBuilderPtr & function_builder = FunctionFactory::instance().get(node->name, context.getQueryContext());
auto projection_action = getProjectionAction(node->name, actions_stack, projection_manipulator, getColumnName(), context);
Names argument_names;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册