[CP] Json bugfix: json column length and create view with json

This commit is contained in:
obdev
2022-08-22 15:55:22 +08:00
committed by wangyunlai.wyl
parent 811b538750
commit 97badd0075
17 changed files with 26 additions and 5 deletions

View File

@ -74,11 +74,8 @@ int ObExprJsonExtract::calc_result_typeN(ObExprResType& type,
}
if (OB_SUCC(ret)) {
if (is_null_result) {
type.set_null();
} else {
type.set_json();
}
type.set_json();
type.set_length((ObAccuracy::DDL_DEFAULT_ACCURACY[ObJsonType]).get_length());
}
}
return ret;