[feature] support user defined nextval("seqname") function

This commit is contained in:
raywill 2021-07-26 15:30:14 +08:00 committed by wangzelin.wzl
parent 191577d3f5
commit 3aa7e08d33

View File

@ -3452,6 +3452,13 @@ int ObRawExprResolverImpl::process_fun_sys_node(const ParseNode* node, ObRawExpr
name = ObString::make_string("ora_decode");
}
}
if (OB_SUCC(ret)) {
if (0 == name.case_compare("nextval")) {
ret = OB_ERR_FUNCTION_UNKNOWN;
}
}
if (OB_FAIL(ret)) {
/*^-^*/
} else if (OB_FAIL(ob_write_string(ctx_.expr_factory_.get_allocator(), name, func_name))) {