[to #53413493] fix mysqltest
This commit is contained in:
@ -903,11 +903,14 @@ int ObSPIService::spi_calc_expr(ObPLExecCtx *ctx,
|
|||||||
if (OB_INVALID_INDEX != result_idx) {
|
if (OB_INVALID_INDEX != result_idx) {
|
||||||
ObObjParam ¶m = ctx->params_->at(result_idx);
|
ObObjParam ¶m = ctx->params_->at(result_idx);
|
||||||
bool is_ref_cursor = param.is_ref_cursor_type();
|
bool is_ref_cursor = param.is_ref_cursor_type();
|
||||||
|
ObAccuracy invalid_accuracy;
|
||||||
if (!result->is_ext()) {
|
if (!result->is_ext()) {
|
||||||
bool has_lob_header = result->ObObj::has_lob_header();
|
bool has_lob_header = result->ObObj::has_lob_header();
|
||||||
if (param.get_meta().get_scale() != SCALE_UNKNOWN_YET) {
|
if (param.get_meta().get_scale() != SCALE_UNKNOWN_YET) {
|
||||||
result->ObObj::set_scale(param.get_meta().get_scale());
|
result->ObObj::set_scale(param.get_meta().get_scale());
|
||||||
result->set_accuracy(ctx->params_->at(result_idx).get_accuracy());
|
result->set_accuracy(ctx->params_->at(result_idx).get_accuracy());
|
||||||
|
} else if (result->get_accuracy() == invalid_accuracy) {
|
||||||
|
result->set_accuracy(ctx->params_->at(result_idx).get_accuracy());
|
||||||
}
|
}
|
||||||
if (has_lob_header) {
|
if (has_lob_header) {
|
||||||
result->ObObj::set_has_lob_header();
|
result->ObObj::set_has_lob_header();
|
||||||
|
|||||||
Reference in New Issue
Block a user