add expr: (#198)
This commit is contained in:
@ -3547,6 +3547,8 @@ int ObRawExprResolverImpl::process_fun_sys_node(const ParseNode* node, ObRawExpr
|
||||
type = ObExprOperatorFactory::get_type_by_name("pow");
|
||||
} else if (0 == func_name.case_compare("ws")) {
|
||||
type = ObExprOperatorFactory::get_type_by_name("word_segment");
|
||||
} else if (0 == func_name.case_compare("inet_ntoa")) {
|
||||
type = ObExprOperatorFactory::get_type_by_name("int2ip");
|
||||
} else {
|
||||
type = ObExprOperatorFactory::get_type_by_name(func_name);
|
||||
}
|
||||
|
||||
@ -667,6 +667,9 @@ int ObRawExprUtils::function_alias(ObRawExprFactory& expr_factory, ObSysFunRawEx
|
||||
} else if (0 == expr->get_func_name().case_compare("ws")) {
|
||||
// ws is synonym for word_segment
|
||||
expr->set_func_name("word_segment");
|
||||
} else if (0 == expr->get_func_name().case_compare("inet_ntoa")) {
|
||||
// inet_ntoa is synonym for int2ip
|
||||
expr->set_func_name("int2ip");
|
||||
} else {
|
||||
}
|
||||
return ret;
|
||||
|
||||
@ -3245,6 +3245,8 @@ int ObResolverUtils::resolve_generated_column_info(
|
||||
type = ObExprOperatorFactory::get_type_by_name("pow");
|
||||
} else if (0 == func_name.case_compare("ws")) {
|
||||
type = ObExprOperatorFactory::get_type_by_name("word_segment");
|
||||
} else if (0 == func_name.case_compare("inet_ntoa")) {
|
||||
type = ObExprOperatorFactory::get_type_by_name("int2ip");
|
||||
} else {
|
||||
type = ObExprOperatorFactory::get_type_by_name(func_name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user