去除alter外键约束时ob_ddl_timeout的约束,修改当前代码中遗失返回码和dead code的问题 (#344)

* 去除alter外键约束时ob_ddl_timeout的约束,修改遗失返回码和dead code的问题

* 修改log记录的信息,修改移除dead code的代码
This commit is contained in:
Wan
2021-09-09 11:24:34 +08:00
committed by GitHub
parent 2fd258cc46
commit 726dad3ff7
3 changed files with 9 additions and 7 deletions

View File

@ -53,9 +53,10 @@ int ObCreateFuncResolver::resolve(const ParseNode& parse_tree)
}
ObObj plugin_path;
session_info_->get_sys_variable(SYS_VAR_PLUGIN_DIR, plugin_path);
ObString plugin_path_str;
if (OB_FAIL(plugin_path.get_string(plugin_path_str))) {
if (OB_FAIL(session_info_->get_sys_variable(SYS_VAR_PLUGIN_DIR, plugin_path))) {
LOG_WARN("get sys variable failed", K(ret));
} else if (OB_FAIL(plugin_path.get_string(plugin_path_str))) {
LOG_WARN("get plugin path failed", K(ret));
} else {
create_func_arg.udf_.set_name(