[CP] [CP] [to #51457237]fix bug subquery result collation in PL

This commit is contained in:
seuwebber
2023-08-28 04:51:36 +00:00
committed by ob-robot
parent ec61073350
commit 643f28f54a

View File

@ -225,8 +225,8 @@ int ObExprOpSubQueryInPl::eval_subquery(const ObExpr &expr,
if (OB_FAIL(ret)) { if (OB_FAIL(ret)) {
LOG_WARN("get result obj failed", K(ret)); LOG_WARN("get result obj failed", K(ret));
} else { } else {
if (info->result_type_.get_type() != result.get_type() || if (!info->result_type_.is_ext()
info->result_type_.get_collation_type() != result.get_collation_type()) { && (info->result_type_.get_obj_meta() != result.get_meta())) {
ObObj conv_res; ObObj conv_res;
OZ (sql::ObSPIService::spi_convert(*session, OZ (sql::ObSPIService::spi_convert(*session,
alloc, alloc,