fix mysqltest

This commit is contained in:
hanr881
2023-06-05 06:42:55 +00:00
committed by ob-robot
parent 4cf19e5877
commit 3a5d8cf7a8
2 changed files with 8 additions and 0 deletions

View File

@ -742,6 +742,12 @@ int ObPLPackageManager::set_package_var_val(const ObPLResolveCtx &resolve_ctx,
OX (cursor->set_sync_cursor());
}
}
} else if (var->get_type().is_opaque_type()) {
if (var_val.is_null()) {
ret = OB_NOT_SUPPORTED;
LOG_WARN("can not sync package opaque type", K(ret));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "sync package opaque type");
}
} else {
OZ (var->get_type().deserialize(resolve_ctx,
var->get_type().is_cursor_type() ?

View File

@ -294,6 +294,8 @@ int ObPLPackageState::make_pkg_var_kv_value(ObPLExecCtx &ctx, ObObj &var_val, in
} else {
OX (value.set_bool(true));
}
} else if (var->get_type().is_opaque_type()) {
value.set_null();
} else {
OZ (var->get_type().serialize(resolve_ctx, var_val, value));
}