bugfix: 1. xml_expr: generated_column_expr; 2. extract, extract_value, update_xml: xpath or ns arg not literal

This commit is contained in:
wu-xingying
2023-06-09 08:42:18 +00:00
committed by ob-robot
parent bde662ca8d
commit 64b032db76
4 changed files with 6 additions and 17 deletions

View File

@ -4441,11 +4441,6 @@ int ObResolverUtils::resolve_generated_column_expr(ObResolverParams &params,
const ObCollationType expr_cs_type = expr->get_result_type().get_collation_type();
const ObObjType dst_datatype = generated_column.get_data_type();
const ObCollationType dst_cs_type = generated_column.get_collation_type();
if (OB_SUCC(ret) && ObUserDefinedSQLType == expr_datatype) {
ret = OB_ERR_RESULTANT_DATA_TYPE_OF_VIRTUAL_COLUMN_IS_NOT_SUPPORTED;
LOG_WARN("Define a xmltype column in generated column def is not supported", K(ret));
LOG_USER_ERROR(OB_ERR_RESULTANT_DATA_TYPE_OF_VIRTUAL_COLUMN_IS_NOT_SUPPORTED);
}
/* implicit data conversion judgement */
if (OB_SUCC(ret) && lib::is_oracle_mode()) {
@ -4477,6 +4472,7 @@ int ObResolverUtils::resolve_generated_column_expr(ObResolverParams &params,
break;
case ObLobType:
case ObLongTextType:
case ObUserDefinedSQLType:
ret = OB_ERR_RESULTANT_DATA_TYPE_OF_VIRTUAL_COLUMN_IS_NOT_SUPPORTED;
LOG_WARN("lob data type in generated column definition", K(ret));
break;