[GIS]fix ret error

This commit is contained in:
obdev
2023-08-01 18:42:27 +00:00
committed by ob-robot
parent 6e155c8467
commit b1c8e014b3
2 changed files with 3 additions and 2 deletions

View File

@ -100,6 +100,7 @@ private:
ret = OB_ERR_NULL_VALUE;
LOG_WARN("unexpected null alloactor for transform functor", K(ret));
} else if (OB_ISNULL(dest_geo = OB_NEWx(GCOutType, alloc, 0, *alloc))) {
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("failed to create geometry collection", K(ret));
} else {
typename GCInType::iterator iter = src_geo->begin();

View File

@ -383,9 +383,9 @@ int ObWktParser::parse_point(bool with_brackets)
LOG_WARN("fail to parse point, check next NUMBER", K(ret));
} else if (with_brackets && OB_FAIL(check_next_token(ObWktTokenType::W_RIGHT_B))) {
LOG_WARN("fail to parse point, check next RIGHT_B", K(ret));
} else if (wkb_buf_.append(x_val.number_val_)) {
} else if (OB_FAIL(wkb_buf_.append(x_val.number_val_))) {
LOG_WARN("fail to append x_val to point", K(ret));
} else if (wkb_buf_.append(y_val.number_val_)) {
} else if (OB_FAIL(wkb_buf_.append(y_val.number_val_))) {
LOG_WARN("fail to append y_val to point", K(ret));
}
return ret;