Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
仲恒
oceanbase
提交
b4461bbb
O
oceanbase
项目概览
仲恒
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b4461bbb
编写于
4月 10, 2023
作者:
O
obdev
提交者:
ob-robot
4月 10, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[to #48916300] a typo when access object_access_idents array
上级
9749d8d4
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
14 addition
and
14 deletion
+14
-14
src/pl/ob_pl_resolver.cpp
src/pl/ob_pl_resolver.cpp
+14
-14
未找到文件。
src/pl/ob_pl_resolver.cpp
浏览文件 @
b4461bbb
...
...
@@ -8956,6 +8956,7 @@ do { \
if (OB_SUCC(ret)) {
int64_t idx_cnt = access_idxs.count();
int64_t idents_cnt = obj_access_idents.count();
CK (OB_LIKELY(idx_cnt != 0));
if (OB_FAIL(ret)) {
} else if (access_idxs.at(idx_cnt - 1).is_system_procedure()) {
...
...
@@ -8964,7 +8965,7 @@ do { \
ObArray<ObRawExpr*> params;
OZ (stmt_factory_.allocate(PL_RAISE_APPLICATION_ERROR, current_block_, stmt));
CK (OB_NOT_NULL(raise_stmt = static_cast<ObPLRaiseAppErrorStmt *>(stmt)));
OZ (obj_access_idents.at(id
x
_cnt-1).extract_params(0, params));
OZ (obj_access_idents.at(id
ents
_cnt-1).extract_params(0, params));
for (int64_t i = 0; OB_SUCC(ret) && i < params.count(); ++i) {
int64_t expr_idx = OB_INVALID_ID;
CK (OB_NOT_NULL(params.at(i)));
...
...
@@ -9007,8 +9008,7 @@ do { \
if (OB_SUCC(ret)
&& package_routine_info->is_udt_routine()
&& !package_routine_info->is_udt_static_routine()) {
int64_t idents_cnt = obj_access_idents.count();
if (idents_cnt >0 && obj_access_idents.at(idents_cnt - 1).udf_info_.is_udt_udf_) {
if (idents_cnt > 0 && obj_access_idents.at(idents_cnt - 1).udf_info_.is_udt_udf_) {
call_stmt->set_is_object_udf();
}
const ObIArray<ObPLRoutineParam *> &routine_params
...
...
@@ -9041,14 +9041,14 @@ do { \
question_expr->set_result_type(type);
OZ (question_expr->extract_info());
OZ (question_expr->add_flag(IS_UDT_UDF_SELF_PARAM));
OZ (obj_access_idents.at(id
x
_cnt - 1)
OZ (obj_access_idents.at(id
ents
_cnt - 1)
.params_.push_back(std::make_pair(question_expr, 0)));
OZ (func.add_expr(question_expr));
if (OB_SUCC(ret) && 0 == self_param_pos) {
std::rotate(obj_access_idents.at(id
x
_cnt-1).params_.begin(),
obj_access_idents.at(id
x
_cnt-1).params_.begin()
+ obj_access_idents.at(id
x
_cnt-1).params_.count() - 1,
obj_access_idents.at(id
x
_cnt-1).params_.end());
std::rotate(obj_access_idents.at(id
ents
_cnt-1).params_.begin(),
obj_access_idents.at(id
ents
_cnt-1).params_.begin()
+ obj_access_idents.at(id
ents
_cnt-1).params_.count() - 1,
obj_access_idents.at(id
ents
_cnt-1).params_.end());
}
}
}
...
...
@@ -9058,19 +9058,19 @@ do { \
CK (OB_NOT_NULL(null_expr));
OZ (null_expr->extract_info());
OZ (null_expr->add_flag(IS_UDT_UDF_SELF_PARAM));
OZ (obj_access_idents.at(id
x
_cnt - 1)
OZ (obj_access_idents.at(id
ents
_cnt - 1)
.params_.push_back(std::make_pair(null_expr, 0)));
if (OB_SUCC(ret) && 0 == self_param_pos) {
std::rotate(obj_access_idents.at(id
x
_cnt-1).params_.begin(),
obj_access_idents.at(id
x
_cnt-1).params_.begin()
+ obj_access_idents.at(id
x
_cnt-1).params_.count() - 1,
obj_access_idents.at(id
x
_cnt-1).params_.end());
std::rotate(obj_access_idents.at(id
ents
_cnt-1).params_.begin(),
obj_access_idents.at(id
ents
_cnt-1).params_.begin()
+ obj_access_idents.at(id
ents
_cnt-1).params_.count() - 1,
obj_access_idents.at(id
ents
_cnt-1).params_.end());
}
}
}
}
// end mock self param
OZ (obj_access_idents.at(id
x
_cnt-1).extract_params(0, params));
OZ (obj_access_idents.at(id
ents
_cnt-1).extract_params(0, params));
if (OB_FAIL(ret)){
} else if (package_routine_info->get_param_count() != 0) {
OZ (resolve_call_param_list(params, package_routine_info->get_params(), call_stmt, func));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录