fix: json type json-object support empty string key

This commit is contained in:
obdev
2022-11-03 01:11:04 +00:00
committed by wangzelin.wzl
parent add9d0d15b
commit 13774e3016
5 changed files with 21 additions and 19 deletions

View File

@ -262,7 +262,7 @@ int ObExprJsonSearch::eval_json_search(const ObExpr &expr, ObEvalCtx &ctx, ObDat
}
// check one_or_all flag
bool one_flag;
bool one_flag = false;
if (OB_SUCC(ret) && !is_null) {
json_arg = expr.args_[1];
val_type = json_arg->datum_meta_.type_;