Fix the issue where error codes are being overwritten
This commit is contained in:
@ -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_) {
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user