fix: 1.roll back add quote 2.add new type support for json table value column 3 error clause process bug

This commit is contained in:
obdev
2023-02-17 03:11:54 +00:00
committed by ob-robot
parent d9a7c9d842
commit 7770bb3358
11 changed files with 61 additions and 64 deletions

View File

@ -461,7 +461,7 @@ int ObExprJsonQuery::set_result(ObObjType dst_type,
if (dst_type == ObVarcharType || dst_type == ObLongTextType) {
ObJsonBuffer jbuf(allocator);
ObString res_string;
if (OB_FAIL(jb_res->print(jbuf, true, pretty_type > 0, 0, true))) {
if (OB_FAIL(jb_res->print(jbuf, true, pretty_type > 0))) {
LOG_WARN("json binary to string failed", K(ret));
} else if (jbuf.empty()) {
ret = OB_ALLOCATE_MEMORY_FAILED;