[CP] to issue<53024365>:fix date type pl var used by sql issue

This commit is contained in:
hanr881
2024-01-08 03:47:28 +00:00
committed by ob-robot
parent 18cffab638
commit ea09db9925
2 changed files with 10 additions and 1 deletions

View File

@ -930,6 +930,9 @@ int ObSPIService::spi_calc_expr(ObPLExecCtx *ctx,
} else if (result->get_accuracy() == invalid_accuracy) {
result->set_accuracy(ctx->params_->at(result_idx).get_accuracy());
}
if (result->is_null()) {
result->set_null_meta(param.get_null_meta());
}
if (has_lob_header) {
result->ObObj::set_has_lob_header();
}