Fix the issue where error codes are being overwritten

This commit is contained in:
maochongxin
2024-12-09 05:19:11 +00:00
committed by ob-robot
parent e7957aaa7f
commit c44523ad6a
2 changed files with 4 additions and 4 deletions

View File

@ -407,9 +407,9 @@ int ObLLVMDIHelper::create_subroutine_type(ObIArray<ObLLVMDIType> &member_types,
} }
int ObLLVMDIHelper::get_current_scope(ObLLVMDIScope &scope) int ObLLVMDIHelper::get_current_scope(ObLLVMDIScope &scope)
{ {
int ret = OB_SUCCESS; int ret = OB_SUCCESS;
if (OB_ISNULL(jc_) || (OB_ISNULL(jc_->file_) && OB_ISNULL(jc_->sp_))) { if (OB_ISNULL(jc_) || (OB_ISNULL(jc_->file_) && OB_ISNULL(jc_->sp_))) {
ret = OB_NOT_INIT; ret = OB_NOT_INIT;
LOG_WARN("jc is NULL", K(ret)); LOG_WARN("jc is NULL", K(ret));
} else if (NULL != jc_->sp_) { } else if (NULL != jc_->sp_) {

View File

@ -602,7 +602,7 @@ int ObHTableDeleteExecutor::delete_rows(ObTableQueryResult &result)
int ret = OB_SUCCESS; int ret = OB_SUCCESS;
const ObITableEntity *entity = nullptr; const ObITableEntity *entity = nullptr;
executor_->set_skip_scan(true); executor_->set_skip_scan(true);
while (OB_SUCC(result.get_next_entity(entity))) { while (OB_SUCC(ret) && OB_SUCC(result.get_next_entity(entity))) {
ObTableOperation op; ObTableOperation op;
op.set_type(ObTableOperationType::Type::DEL); op.set_type(ObTableOperationType::Type::DEL);
op.set_entity(entity); op.set_entity(entity);