Fix failed mysqltests

This commit is contained in:
2149
2023-05-30 01:11:12 +00:00
committed by ob-robot
parent 76e17ac719
commit 8dd2cf466a
4 changed files with 7 additions and 14 deletions

View File

@ -29,7 +29,7 @@ using namespace common;
namespace sql
{
ObExprExtract::ObExprExtract(ObIAllocator &alloc)
: ObFuncExprOperator(alloc, T_FUN_SYS_EXTRACT, N_EXTRACT, 2, NOT_VALID_FOR_GENERATED_COL, NOT_ROW_DIMENSION)
: ObFuncExprOperator(alloc, T_FUN_SYS_EXTRACT, N_EXTRACT, 2, VALID_FOR_GENERATED_COL, NOT_ROW_DIMENSION)
{
}

View File

@ -152,7 +152,7 @@ int ObExprOracleToChar::calc_result_typeN(ObExprResType &type,
if (type_array[0].is_oracle_temporal_type()) {
type_array[1].set_calc_type(ObVarcharType);
type_array[1].set_calc_collation_type(nls_param.nls_collation_);
} else {
} else if (!type_array[1].is_varchar_or_char()) {
type_array[1].set_calc_type_default_varchar();
}
}