bugfix: json_object_t on_error && json_object_t duplicate key && regression case

This commit is contained in:
wu-xingying
2023-09-20 16:50:01 +00:00
committed by ob-robot
parent 98d6d32ccc
commit 7df46cab65
5 changed files with 24 additions and 8 deletions

View File

@ -319,7 +319,7 @@ int ObJsonExprHelper::eval_oracle_json_val(ObExpr *expr,
INIT_SUCC(ret);
ObDatum *json_datum = nullptr;
ObExpr *json_arg = expr;
bool is_bool_data_type = json_arg->is_boolean_;
bool is_bool_data_type = (json_arg->is_boolean_ || json_arg->datum_meta_.type_ == ObTinyIntType);
if (OB_FAIL(json_arg->eval(ctx, json_datum))) {
LOG_WARN("eval json arg failed", K(ret), K(json_arg->datum_meta_));