bugfix : json object key value with colon && timestamp_tz return value

This commit is contained in:
obdev
2023-02-07 17:49:06 +08:00
committed by ob-robot
parent c3eb8f3b5a
commit a9d66dae7a
3 changed files with 72 additions and 2 deletions

View File

@ -1516,7 +1516,11 @@ int ObExprJsonValue::cast_to_res(common::ObIAllocator *allocator,
ret = cast_to_otimstamp(j_base, session, accuracy, dst_type, val, is_type_cast);
}
if (!try_set_error_val<ObDatum>(expr, ctx, res, ret, error_type, error_val, mismatch_val, mismatch_type, is_type_cast, accuracy, dst_type)) {
res.set_otimestamp_tiny(val);
if (dst_type == ObTimestampTZType) {
res.set_otimestamp_tz(val);
} else {
res.set_otimestamp_tiny(val);
}
}
break;
}