bugfix : json table expr format json conflict with json type

This commit is contained in:
obdev
2023-03-02 21:12:02 +08:00
committed by ob-robot
parent 0cb49f4698
commit b2e064e9da
4 changed files with 16 additions and 6 deletions

View File

@ -699,7 +699,10 @@ int ObDMLStmtPrinter::print_json_table_nested_column(const TableItem *table_item
} else if (col_info.col_type_ == static_cast<int32_t>(COL_TYPE_QUERY)) {
// to print returning type
OZ (print_json_return_type(col_info.res_type_, col_info.data_type_));
DATA_PRINTF(" format json");
ObObjType cast_type = col_info.data_type_.get_obj_type();
if (cast_type != ObJsonType){
DATA_PRINTF(" format json");
}
if (OB_FAIL(ret)) {
} else if (col_info.allow_scalar_ == 0) {
DATA_PRINTF(" allow scalars");