fix: json type object support empty string key

This commit is contained in:
obdev
2022-10-21 03:32:23 +00:00
committed by wangzelin.wzl
parent 82519cc587
commit 4ad6e00ec3
5 changed files with 30 additions and 28 deletions

View File

@ -493,7 +493,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_;